Skip to content
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: potential issues with version numbers and dataloading #109

Closed
wants to merge 26 commits into from

Conversation

sudarshanv01
Copy link
Collaborator

Thanks to @mt-huebsch for pointing out the following two issues (most likely stemming from our last commit, couple of weeks ago).

  • The Cell schema requires scale coming from intermediate/positions/scale, which seems to be added to the HDF5 file only in v6.5. This change is different from results/positions/scale, which was used earlier (assuming that the scale is commonly multiplied for all intermediate steps (which would only be correct if scale=1). In this PR, I scale back to earlier way of working, but it would be great if there was an "optional" somewhere for 6.4 and 6.5?
  • .energies.to_dict() was breaking because a transpose operation was being applied to the VaspData object. In this PR, I convert it to a numpy array and then pass it in to the iterator. I am unclear why this function was not breaking before.

@sudarshanv01 sudarshanv01 changed the title Fix potential issues with version numbers and dataloading fix: potential issues with version numbers and dataloading Sep 15, 2023
@sudarshanv01
Copy link
Collaborator Author

Second issue will be fixed in #108 - first issue will be discussed later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant