-
Notifications
You must be signed in to change notification settings - Fork 3
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
Use Dataclass for ASE and QE #131
Conversation
From my point of view, it makes more sense to have pre-defined fields in |
Central data classes for output
Done |
atomistics/calculators/ase.py
Outdated
if "calc_energy" in tasks: | ||
quantities.append("energy") | ||
if "calc_forces" in tasks: | ||
quantities.append("forces") | ||
if "calc_stress" in tasks: | ||
quantities.append("stress") |
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.
Here I see the same problem as the one we discussed here and here. To the very least, these lines appear twice inside atomistics, so they have to be somehow refactored, but more fundamentally, I see a clear connection between tags, tasks (i.e. calc_XYZ
) and interactive getters. Interactive getters and the tags are now fully conceptualised with the data class, and I think the same should happen for the tasks 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.
110%, although fair to break that step into a different PR
It's not mission critical because one can always refactor: rename later, but it might be wise to resolve #129 before/while propagating these classes to the other calculators |
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.
There's still no concept for the part that I mentioned, but it's now refactored, so I'm ok with the current state
I agree I played around with it a bit and was not able to solve it, so I would prefer to move forward with the current pull request and then do the optimisation in a separate pull request. |
No description provided.