Skip to content

Conversation

@shivupa
Copy link
Member

@shivupa shivupa commented Nov 12, 2025

aonames for the orca v2 parser. Also are aonames not tested?

@codecov
Copy link

codecov bot commented Nov 12, 2025

Codecov Report

❌ Patch coverage is 0% with 29 lines in your changes missing coverage. Please review.
✅ Project coverage is 12.65%. Comparing base (bdc33af) to head (2718a4b).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
cclib/attribute_parsers/aonames.py 0.00% 29 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1702      +/-   ##
==========================================
- Coverage   12.68%   12.65%   -0.04%     
==========================================
  Files         111      111              
  Lines       17069    17080      +11     
==========================================
- Hits         2165     2161       -4     
- Misses      14904    14919      +15     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@berquist
Copy link
Member

Hmmmm

/home/eric/development/cclib_berquist
[eric@osmium]$ rg -F aonames test
test/regression.py
1920:    assert isinstance(logfile.data.aonames, list)
1926:    assert len(logfile.data.aonames) == logfile.data.nbasis
1933:    assert logfile.data.aonames[41] == "O2_9D 0"
2133:    assert len(logfile.data.aonames) == logfile.data.nbasis
3732:    assert data.aonames[-1] == "Ga71_19D-2"
3733:    assert data.aonames[0] == "Mn1_1S"

@shivupa
Copy link
Member Author

shivupa commented Nov 30, 2025

Ah ok I was checking the main tests not regression

if len(parts) > 1:
if i > 0:
this_atombasis.append(basisonatom) # noqa: F821
this_aonames.append(basisonatom) # noqa: F821
Copy link
Member

Choose a reason for hiding this comment

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

I think you can get rid of the noqa now that this_aonames is returned

Copy link
Member Author

Choose a reason for hiding this comment

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

done

"""

known_codes = ["gaussian"]
known_codes = ["gaussian", "ORCA"]
Copy link
Member

Choose a reason for hiding this comment

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

Fine for now but I'm not sure what we should do about case here; I supposed it depends on how it's called by users or us, but haven't thought about it much

Copy link
Member Author

Choose a reason for hiding this comment

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

true right now this is only touched by devs and isn't user facing. This could change. Also there isnt an easy way to inject a known code for a user created parser.

@berquist berquist added this to the v2.0a2 milestone Nov 30, 2025
@berquist berquist added the ORCA label Nov 30, 2025
@shivupa shivupa merged commit a1a37d4 into cclib:main Dec 9, 2025
24 of 26 checks passed
@berquist
Copy link
Member

berquist commented Dec 9, 2025

Ah ok I was checking the main tests not regression

It was more of a "oh you're right"; ideally there would be some that aren't in regressions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants