Skip to content

Gauss Trsh Fixes #713

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

Merged
merged 4 commits into from
Nov 24, 2023
Merged

Gauss Trsh Fixes #713

merged 4 commits into from
Nov 24, 2023

Conversation

calvinp0
Copy link
Member

@Lilachn91 pointed out that nosymm should not be part of the opt or scf combination of parameters but be its own parameter. This has been implemented. Furthermore, at times we end up creating an input file that may have opt=([param1]) and opt=([param2]) when rather they should be combined into one opt=([param1,param2])

@calvinp0 calvinp0 requested review from alongd and Lilachn91 November 23, 2023 11:53
@github-actions github-actions bot added the Module: trsh Troubleshooting label Nov 23, 2023
Copy link

codecov bot commented Nov 23, 2023

Codecov Report

Attention: 16 lines in your changes are missing coverage. Please review.

Comparison is base (26b200b) 73.66% compared to head (e407531) 73.68%.

Files Patch % Lines
arc/job/trsh.py 68.75% 6 Missing and 4 partials ⚠️
arc/job/adapters/gaussian.py 57.14% 5 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #713      +/-   ##
==========================================
+ Coverage   73.66%   73.68%   +0.01%     
==========================================
  Files          99       99              
  Lines       26866    26903      +37     
  Branches     5593     5604      +11     
==========================================
+ Hits        19792    19824      +32     
- Misses       5680     5685       +5     
  Partials     1394     1394              
Flag Coverage Δ
unittests 73.68% <70.37%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@calvinp0 calvinp0 force-pushed the guass_fix_trsh branch 2 times, most recently from 1fb01a1 to f108f62 Compare November 23, 2023 13:14
Opt is now treated like SCF, whereby param terms are split and recombined into one `opt=(...)` section
Added NoSymm
NoSymm is not meant to be part of the opt or scf paramter combinations
Copy link
Member

@alongd alongd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!
I'm missing a test generating a Gaussian input file with the nosymm keyword properly placed

@@ -522,4 +522,15 @@ def combine_parameters(input_dict: dict, terms: list) -> Tuple[dict, List]:
value = re.sub(term, '', value)
input_dict_copy[key] = value

# Parameters may appear as one word, so need to split them via comma
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice addition. Can you add some tests?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@calvinp0
Copy link
Member Author

Looks good, thanks!

I'm missing a test generating a Gaussian input file with the nosymm keyword properly placed

#P opt=(calcfc,maxstep=5,tight) guess=mix wb97xd integral=(grid=ultrafine, Acc2E=14) IOp(2/9=2000) nosymm scf=(direct,tight,xqc)

@alongd
I believe this covers the nosymm test with correct placement

Copy link
Member

@alongd alongd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@alongd alongd merged commit b47ea8e into main Nov 24, 2023
@alongd alongd deleted the guass_fix_trsh branch November 24, 2023 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Module: trsh Troubleshooting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants