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 numpy constants to pytensor.tensor scope #404

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

ricardoV94
Copy link
Member

One can thus write:

import pytensor.tensor as pt

x = pt.scalar("x")
y = x * pt.pi

@michaelosthege
Copy link
Member

Isn't the __all__ in there totally incomplete? It exports only the random submodule, but not even the *-imported stuff

@ricardoV94
Copy link
Member Author

Isn't the __all__ in there totally incomplete? It exports only the random submodule, but not even the *-imported stuff

No idea why it was needed to add the random, but we probably don't want to list everything explicitly. It also looked funny to me.

@ricardoV94 ricardoV94 merged commit 4cc13bc into pymc-devs:main Aug 1, 2023
52 checks passed
@ricardoV94 ricardoV94 deleted the constant_aliases branch August 25, 2023 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants