-
Notifications
You must be signed in to change notification settings - Fork 174
New fields for Gaussian parser #295
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
Conversation
…ussian03/QVGXLLKOCUKJST-UHFFFAOYAJmult3Fixed.out
Quick question: do these energies need unit conversion like those in |
We generally prefer not to parse something if it can be calculated. For example, |
Fair enough. Let me know which ones you want to keep! |
Well, let's look at them one at a time. I think |
Yes, it would be best to be consistent and present all energies in the same units. We would like to be able to switch in the future (#89). |
Added the charge to the formula in jaimergp#2. Anything else that needs to be done for the stoichiometry? |
Add charge to stoichiometry method (and test)
It seems you added carriage returns to data.py in 3a9e4dd, marking the whole file as changed. Could you please rewrite this commit so that this doesn't happen? |
src/cclib/parser/gaussianparser.py
Outdated
if line[1:12] == "Temperature": | ||
self.set_attribute('temperature', float(line.split()[1])) | ||
if "Sum of electronic and zero-point Energies=" in line: |
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.
For zero point energy we should probably subtract the electronic energy. @berquist any comments on this?
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.
Yes, it should be subtracted out. Though, why not use the line with Zero-point correction=
?
It looks like we were primarily waiting on fixes to the line endings for |
Well, I have invested more time than I will admit with [Edit] Maybe now it's working? There's some duplication of commits, but apparently it's all good... See below. |
I am tempted to start all over with this PR and forget about the commit mess... @langner authored the stoichiometry part, but I can (re)submit the changes having to do with:
Is that OK? |
Well... it seems something's wrong with the current set of changes (only If you want to split the PR up into smaller bits, a reasonable way to do it is to have one attribute per PR. |
This PR is getting unmanageable. @jaimergp if you still plan on pushing this forward, some changes are needed due to recent refactors. And, please break up into smaller PRs, which will be easier to merge in. |
Yes, @langner, I will get back to this as soon as I can. For the time being, we can close this PR and I will create new separate PRs as needed. By the way, which refactors should I look into? |
Ok, I am ready to get back to this. Before opening a new PR and forgetting about this, I'd like to sum up the pending tasks:
Depending on the answers, I will start independent PRs for each point, if that's OK. |
I have notes somewhere on this, but maybe you can tell me: can we calculate those numbers, or are they unique fields? If they're unique, I think we should let the user/external program calculate them, and mention this in the Gaussian section of the documentation. We should avoid redundant/non-unique attributes if possible. For singular/plural, right now all our thermochemistry attributes are singular, because only single values get parsed, and we assume there's only one thermochemistry block per calculation. This will change in the future, because many programs can do multiple isotope runs for a single frequency calculation.
Yes. Generally, if len(homos) == 1:
nalpha = nbeta = homos[0] + 1
else:
nalpha = homos[0] + 1
nbeta = homos[1] + 1
You can make a new PR from exactly those commits and all the metadata, like authorship, will be correctly retained. Yes, you should make new PRs. You can use |
SGTM. Rebasing in this PR is OK with me as well, but new ones would be cleaner. Please just reference this one from the new ones to keep the history of communication. |
Ok, got it. In the following days I will be posting the new PRs. |
@jaimergp Do you think you will have time in the next week to finish this up before the release? |
Hi @langner! I have doubts on what I am supposed to do :/ After reading @berquist's answer to point 2, I think we should start a conversation about what to do with the thermochemistry. Maybe creating an issue for this is enough for now? So, the only thing left is to calculate the number of alpha and beta electrons with, I guess, the same approach we did for |
Sounds exactly right. I'm not comfortable adding attributes for those fields until I can remember how they map to fields in other programs, but I haven't gotten around to it.
Maybe inside |
OK... pushing this back for after the release. |
Since, the relevant PRs have been submitted and I have just create the issue to discuss thermochemistry, I'd say we can dismiss this PR and close it. |
I needed additional fields not present in the original parser so I went ahead and extended the .extract() method. I had to also extend the ccData class with the new attributes:
It also fixes a typo in the free energy parsing line (it was missing an e:
freenergy
instead offreeenergy
).I hope you find it useful!