-
Notifications
You must be signed in to change notification settings - Fork 4
tools/parsers: add new parsing functions
#15
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
base: main
Are you sure you want to change the base?
Conversation
|
Thanks @ymzhang0! I'm wondering if we can add some minimal Other than that, I would merge these outright, since you're using them now they will probably do what is expected. Once the tests are also set up, we can always come back and refactor things. |
|
Hi Marnik, |
Hehe, I know I go on a lot about splitting up PRs/commits into smaller ones, but for tests (and also documentation), they should go in along with the changes made to the code, often even without mentioning them in the commit message. I sometimes have PRs that only make changes to tests, but that's often because I add a new fixture, refactor things, or add tests that were missed in the past. Thanks a lot for adding the test here! I would still try to reduce the number of line changes, e.g. the
It's a bit of extra work to pay attention to this, but over time adding large files will make your repository very bloated. I'm sure you've noticed some scientific repositories where it takes a while to clone them because they are huge. That's what we want to avoid. :) Let me know if you need a hand! Once the test files are smaller, the review is also easier. E.g. on GitHub I need to review file per file now because of the number of changes. When I try to review in VSCode directly (which I typically do), I can't open certain files without pulling the changes. No big deal, but all in all it's good to try and keep test files minimal. 🙏 |
Reduce the size of data folder, trim regression data
|
Thanks for the review. I deleted most of the isotropic/anisotropic gap function files keeping only 3 of them. I'll probably write a fitting function for Tc so I think it's reasonable to keep 3 temperature points. For the data regression, I only keep the top 10 items in each list. |
Add parsing functions for: electron dos, phonon dos, epw interpolated bands, max_eigenvalues, isotropic/fsr anisotropic gap functions in tools/parser.py
Fixed a small bug in the original
parse_epw_a2ffunction that it should skip the first line since it's not commented by #.I've tested those functions, and they work normally for my test files. If you want, I can also upload those files to tests folder, since they are also useful for the future tests of these functions