-
Notifications
You must be signed in to change notification settings - Fork 203
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
TrajectoryData.get_step_data
throws error if trajectory does not contain cells
array
#4170
Comments
What the hell is this syntax even? That really threw me off, but just realize this is Anyway, I got side-tracked.
I didn't know this was the actual behavior of the |
Another question: the method aiida-core/aiida/orm/nodes/data/array/trajectory.py Lines 476 to 494 in c817021
Is there a reason to keep both methods when they could be merged to one? (In fact, the documentation is also wrong: it does not use the parameter aiida-core/aiida/tools/data/array/trajectory.py Lines 15 to 27 in c817021
I can add a fix to the PR #4171, let me know. :) |
Numpy indexing is fantastic (but sometimes also fantastically confusing), you should treat yourself to https://numpy.org/devdocs/user/basics.indexing.html some time. I'm pretty sure there are some things in there that wouldn't work if each axis had a separate |
|
Ok thanks. I'll add a warning then.
If the user specifies a cell, it will be used/overridden to generate the |
TrajectoryData.get_step_data
throws an error if the trajectory does not contain an arraycells
.This is due to a typo here:
aiida-core/aiida/orm/nodes/data/array/trajectory.py
Lines 354 to 357 in c817021
cell
will not be defined ifcells
isNone
.Side note:
once the bug above if fixed, if a trajectory does not contain
cells
, the methodTrajectoryData.get_step_structure
will return aStructureData
with the default cell matrixShould the user be warned about this (perhaps not intended) behavior? or is it ok, since it is the default cell value of
StructureData
?The text was updated successfully, but these errors were encountered: