-
Notifications
You must be signed in to change notification settings - Fork 2
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: only set model name if the model really changes and refactor to cwd #122
Conversation
Also, I added the option to only load certain variables from mats, which speeds thinks up by factors and reduces memory usage. Moreover, pathlib.Path is used for |
if cd is None: | ||
self._cd = None | ||
if working_directory is None and "cd" in kwargs: | ||
warnings.warn("cd was renamed to working_directory in all classes. Use working_directory instead.", category=DeprecationWarning) |
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.
Add a hint that cd
is still used as working_directory
. Unexperienced users might be confused otherwise.
Check other code occurrences as well.
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.
This is just backwards compatibility, cd is converted to workings_directory
@FelixStege thanks for the comments, I fixed them all! |
Closes #121
Closes #61