-
Notifications
You must be signed in to change notification settings - Fork 871
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
Clean up test files: VASP outputs #3653
Conversation
Do you have any comments so far before I proceed? @janosh Test file namingRegarding the test file naming conventions, I would like to hear about your suggestions. Taking
In this case, maybe either Tests for
|
entry = self.drone.assimilate(TEST_FILES_DIR) | |
for param in ("hubbards", "is_hubbard", "potcar_spec", "run_type"): | |
assert param in entry.parameters |
Which seems to pack os.listdir()
:
pymatgen/pymatgen/apps/borg/hive.py
Lines 104 to 113 in c05931c
def assimilate(self, path): | |
"""Assimilate data in a directory path into a ComputedEntry object. | |
Args: | |
path: directory path | |
Returns: | |
ComputedEntry | |
""" | |
files = os.listdir(path) |
But I'm not familiar with borg
so 28c784c may not be a rational fix. Can you help me double check this?
Thanks a lot 😃 !
…tgen into clean-up-tests
i noticed that as well. not sure why but also haven't investigated this at all yet. my suspicion was the windows runner just use slower hardware but maybe that's wrong and it's something in our test setup. either way it makes sense to occasionally update the |
Not sure (don't have much knowledge about Github Actions...). But I guess it has something to do with the runners themselves, as I notice there're others reporting this as well.
Well I don't think this would help much though... As currently Windows runners seem consistently slower than Ubuntu, so even we balance the runtime of both sides, the final run time would still be determined (and slowed) by Windows 😿 |
Signed-off-by: Haoyu (Daniel) <[email protected]>
This comment was marked as resolved.
This comment was marked as resolved.
Signed-off-by: Haoyu (Daniel) <[email protected]>
Please review @janosh. I have to keep the test file name for pymatgen/pymatgen/apps/borg/hive.py Lines 104 to 133 in b96d9e1
I wouldn't touch the source code because I don't have proper knowledge of Noticed some tests are failing because |
that's certainly true
sure, makes sense
not sure either Line 81 in b96d9e1
|
That would be much appreciated. Also noticed tests only failed for Ubuntu not Windows. It seems Successfully installed ....... matgl-1.0.0 ...... And import error is triggered for importing from the submodule not the
|
Well I came up with a solution in bd87dea: create a symlink with |
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.
perfect! thank you so much @DanielYang59! 👍 this is a huge PR and hugely appreciated! you've been a big help cleaning up the pymatgen code base!
i can take a look at the unrelated CI errors in a separate PR
Thanks for reviewing @janosh! (I was about to redefine a |
Clean up test files: VASP outputs
This is the first step of cleaning up test files: VASP outputs, relocate VASP output files to a dedicated dir (
vasp/outputs
) undertests
dir to tidy up thefiles
dir.With the aim to clean up test files so that future developers could easily find and reuse existing test files whenever possible.
TODOs
vasprun.xml
c68d5c3 and 2c8eba7OUTCAR
ee6df80CHGCAR
37868ceDOSCAR
649152aEIGENVAL
1bba1bfPROCAR
099c205WAVECAR
428c326XDATCAR
0044e49 and bd07afdLOCPOT
897fa39CONTCAR
cb9fd86DYNMAT
8c69192,ELFCAR
71964ad,IBZKPT
eb33d40,WAVEDER
002225f,OSZICAR
b2d9040).Future follow up PRs
tests/files/relaxation
,tests/files/kpoints_opt
and more.