-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fix breakage caused by changes in formulaic #423
Conversation
try: | ||
from formulaic.materializers.base import EncodedTermStructure | ||
except ImportError: | ||
from formulaic.materializers.types.formula_materializer import EncodedTermStructure |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we use the formulaic
version to select the import path instead of a try/except
block?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately I don't know in which version the change will appear. It's on main now, and my guess is 1.1
, but I'm not sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe raise an issue with formulaic
about breaking the public API without a major release?
@stanmart, I hijacked your PR to also update a CI runner so that the CI would pass. |
oops, I thought it would be a simple fix. Not the case. I will open a different PR to fix this. |
haha, all good, I'll merge it then |
It seems like formulaic might be considering the
EncodedTermStructure
a private class based on the fact that it is being moved in a non-major release. A bigger refactor of theformula
module might be worth considering at some point now that formulaic reached 1.0 and is more stable. Until then, this PR provides a quick fix for #422.Checklist
CHANGELOG.rst
entry