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

Resolve deprecation warning for pytensor's Variable #159

Merged
merged 5 commits into from
Apr 18, 2024

Conversation

RyanAugust
Copy link
Contributor

Pytensor has renamed pytensor.tensor.var to pytensor.tensor.variable.
Imports in pymc_bart rely on the legacy .var call, which within pytensor resolves by throwing a warning and importing the renamed variable sub-module. Pytensor commit ref

This PR simply updates pymc_bart to call the modern .variable directly

Copy link
Member

@aloctavodia aloctavodia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @RyanAugust

@aloctavodia aloctavodia merged commit af7eeb5 into pymc-devs:main Apr 18, 2024
4 checks passed
@aloctavodia
Copy link
Member

Thanks @RyanAugust!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants