-
Notifications
You must be signed in to change notification settings - Fork 46
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
Turn all numedtuples into attrs classes #214
Conversation
Fixes theochem#201 Related to theochem#138 and theochem#157 (which were earlier attempts) This PR includes: - Attribute validation (to large extent, not every detail) - attrutil module to facilitate validation of array attributes - Documentation of how attrs is used in IOData - Bug fix in CP2K loader, related to theochem/gbasis#78 - Minor fixes elsewhere to satisfy attribute validators
The previous two related PRs contain many outdated and redundant comments, which is the reason for making a ne PR. This is the cleaned-up version, which should be easier to review. |
Codecov Report
@@ Coverage Diff @@
## master #214 +/- ##
==========================================
+ Coverage 95.56% 95.65% +0.09%
==========================================
Files 61 63 +2
Lines 6605 6743 +138
Branches 847 865 +18
==========================================
+ Hits 6312 6450 +138
Misses 136 136
Partials 157 157
Continue to review full report at Codecov.
|
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´m not very familiar with the attrs class but it looks fine. Only a minor correction and a comment. Learnt a lot reviewing :-)
Several people have already reviewed this (including in former PRs), so I'm going to merge this. |
Fixes #201
Related to #138 and #157 (which were earlier attempts)
This PR includes: