Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add aliases for common accessors #595

Open
kratsg opened this issue Oct 2, 2019 · 0 comments
Open

Add aliases for common accessors #595

kratsg opened this issue Oct 2, 2019 · 0 comments
Labels
API Changes the public API good first issue Good for newcomers refactor A code change that neither fixes a bug nor adds a feature

Comments

@kratsg
Copy link
Contributor

kratsg commented Oct 2, 2019

Description

We should provide some nice aliases to make things easier to use in pyhf overall such as:

  • pyhf.tb to pyhf.tensorlib
  • pyhf.np to pyhf.tensor.numpy_backend
  • pyhf.tf to pyhf.tensor.tensorflow_backend
  • pyhf.opt to pyhf.optimizer

and so on. These should all map to the longer name versions.

@kratsg kratsg added good first issue Good for newcomers API Changes the public API refactor A code change that neither fixes a bug nor adds a feature labels Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Changes the public API good first issue Good for newcomers refactor A code change that neither fixes a bug nor adds a feature
Projects
None yet
Development

No branches or pull requests

1 participant