-
Notifications
You must be signed in to change notification settings - Fork 15
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
Deprecate workdir path getter in favour of job.files #1319
Conversation
Pull Request Test Coverage Report for Build 7901694464Details
💛 - Coveralls |
|
|
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.
I like the dot-notation more than the edge brackets, but that is just because it is a little shorter.
Use dot notation
pyiron_atomistics/vasp/base.py
Outdated
if "CHGCAR" not in self.files.list(): | ||
raise FileNotFoundError("The CHGCAR has to be available in the working directory: " + self.working_directory) |
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.
While these separate checks are a bit annoying, if we do not do this it raises either a KeyError
or an AttributeError
both is not exactly what we want. We could think about changing this in pyiron_base
.
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.
I implemented a suggestion in #1322 but this requires another pyiron_base
release.
This pull request requires pyiron/pyiron_base#1329
Files file not found
Waiting for conda-forge/pyiron_base-feedstock#197 |
@pmrv As the tests are passing now, I guess this is ready to be merged. |
See corresponding PR in base.