Skip to content

Add aliases for common accessors #595

@kratsg

Description

@kratsg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIChanges the public APIgood first issueGood for newcomersrefactorA code change that neither fixes a bug nor adds a feature

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions