-
Notifications
You must be signed in to change notification settings - Fork 141
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
"node_energy" in implemented properties make ase singlepoint calculator angry! #256
Comments
I'm not sure what the state of the art is. Certainly we've had issues with non-standard properties in the results dict for things like converting to a |
if |
That is strange. I have used custom properties with the |
|
@bernstei if you are referring to line 24 and 26 in the link you provided, you can test, it does not work
an easy test to confirm this
it needs to be modified as at least that's how it is in python3.10.12 |
That is the expected behavior: With |
@bernstei thats what my first point when I raised this issue. As node_energy is not defined in all supported property list in ase, this causes the issue. |
Yes - that's why you can't stick random properties in the results dict. You can change this restriction, but the problem is that readers/writers (this came up in extxyz, hence my and @jameskermode's involvement) need to know what calculated properties are per-config, and go in Your
is definitely not a fix - that test does nothing, as it always returns |
I think we are on the same page @bernstei . My very first suggestion and motivation behind raising this issue was to avoid including random properties. |
Is there a reason not to switch to |
OK - I guess I was just confused by your proposed change to the |
No worries, I got the impression from your earlier comment that you did not see any problem with this issue.
I think then we are on the same page that we can rename this |
We used to make this decision based on the shape, ie if one dimension was Natoms then you assume it's an atomic property. This breaks down eg for stress like quantitaties and 3-atom structures, but maybe we could revisit this, and try to recognise per-config tensors by their standard names (stress, virial etc) and apply the heuristic to the rest. |
mace/mace/calculators/mace.py
Line 78 in 5debea4
Assertion Fails in https://gitlab.com/ase/ase/-/blob/master/ase/calculators/singlepoint.py?ref_type=heads#L25
as "node_energy" is not one of the defined properties in https://gitlab.com/ase/ase/-/blob/master/ase/calculators/calculator.py?ref_type=heads#L125
we can still keep the node energy and all the other stuff in the results but probably it's best to remove non-standard items from
implemented_properties
or we ask ase to remove the assertation. just wanted to bring up this issue that I just faced!
The text was updated successfully, but these errors were encountered: