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

JDFTx IO module #4078

Open
wants to merge 270 commits into
base: master
Choose a base branch
from
Open

JDFTx IO module #4078

wants to merge 270 commits into from

Conversation

benrich37
Copy link

@benrich37 benrich37 commented Sep 24, 2024

Summary

This PR has been divided into the following 3 PR's

This PR can be ignored until those PR's are approved

Todos

  • Add methods which interface between input and output objects (namely creating input objects from output objects)
  • Write broader inputs and outputs class to house JDFTXInfile and JDFTXOutfile along with additional inputs/outputs information

@mkhorton
Copy link
Member

Thanks @benrich37, I will review this

…trospect I think defining __setitem__ explicitly was a misstep and should've been a public set_tag method, but changing it breaks a lot of tests so that is now a whole task. I think enough new code has been written here that my coverage may actually drop
…ng methods since they are never reached by the current code design.
benrich37 and others added 14 commits December 4, 2024 14:33
…void any issues with using a JOutStructure in place of a Structure, adding eigenvals and bandProjections to JDFTXOutputs
…ucture objects), added a "constant_lattice" bool attribute to JDFTXOutfileSlice for creating a Trajectory, changed the "_get_trajectory" method for JDFTXOutfile to instead concatenate the "trajectory" attributes of the JDFTXOutfileSlice's
…e, removing test for ValueError no longer raised in _set_trajectory in JDFTXOutfileSlice
…e validation methods to AbstractTag for validations that are called multiple times, cleaned up cluttered tests and added comments to make it more clear what is being tested
…thin a for-loop now, adding "forces" as an attribute passed upstread to JDFTXOutfile
…when reading initial coordinates in joustructures.py (_get_initial_coords), added missing 1/bohr_to_ang when creating a JDFTXInfile from a pmg Structure, added specification of coords-type when creating JDFTXInfile from a pmg Structure, added keyword argument for from_structure to store ion position tags as fractional or cartesian coordinates
benrich37 and others added 15 commits December 20, 2024 15:37
fixed cartesian coords in from_jdftxinfile method and added Etot to p…
Merge pull request #1 from cote3804/jdftx-coords
….io tries to raise an "EncondingWarning", changing the dump files dir to be a fixture that creates itself, yields the path, and then removes itself (parts after a "yield" only run once the test using the fixture has finished)
Changing all "zopen" to just "open" due to an error raised when monty…
…als available per ion-type, adding a value check for the bandProjections, improving docustring for JDFTXOutputs
Storing a list of the orbital labels instead of a dictionary of orbit…
… to allow for initialization on calc_dirs with ambiguous out file identity (ie multiple files with the .out suffix)
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.

6 participants