-
Notifications
You must be signed in to change notification settings - Fork 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
Add zero-electron species to gaussian dataset #138
Conversation
Yes, this seems a good solution to me give that making the change at the level of the atomdb.load function isn't as simple as it seemed. Thanks @msricher Btw, I've compiled the proton using the updated run script; let me know and I'll upload it here (under test folder) so the tests can be ran. |
Looks good to me. |
Just one comment, when I tried running the promolecule test for LiH, it failed; my impression is that the problem was on the side of the promolecule module, not that the zero-electron species was being generated incorrectly. I'll upload the |
@marco-2023 I just added the proton file Also, I had to comment L150 on the gitignore file to track this file added under test/data/gaussian/db. Maybe be should keep this line as it used to be (atomdb/datasets/*/db/) so we can track changes to the test msg files? An here is the error I get when running the promolecule test module:
E assert False atomdb/test/test_promolecule.py:212: AssertionError ` |
I added a special case for computing intensive properties where zero-electron species may be present. It just calls out to _intensive_property_exclude_zero(...) instead of _intensive_property(...). |
Now only the nist_data tests fail, which don't concern this PR. |
@msricher I think the fix is good. |
@@ -146,8 +146,10 @@ cython_debug/ | |||
.spyproject | |||
.vscode/ | |||
|
|||
# Raw data files | |||
atomdb/datasets/*/db/ |
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.
I think it was best to only exclude the .msg files under datasets from being tracked; imo we do need the ones under the test module.
Aside from this I also agree with the changes in this PR.
@marco-2023 @msricher
|
@marco-2023 @msricher and @gabrielasd is this pull request ready to merge now? |
Can I get your opinions on this, and if it's OK, I will add it for the other datasets as well.
(Currently the new test fails because the .msg file is not in the atomdbdata repo.)