-
Notifications
You must be signed in to change notification settings - Fork 219
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
Rework Gibbs constructors #2456
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2456 +/- ##
==========================================
- Coverage 85.39% 85.00% -0.39%
==========================================
Files 21 21
Lines 1588 1581 -7
==========================================
- Hits 1356 1344 -12
- Misses 232 237 +5 ☔ View full report in Codecov by Sentry. |
Pull Request Test Coverage Report for Build 12656843744Details
💛 - Coveralls |
Otherwise, super happy with this, I like APIs that are precise as opposed to ones that let you do whatever 👍😄 |
@yebai are you happy with this interface? The test failures are two cases of x86 running out of memory and one case of some coveralls network error. |
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.
No more comments on my part 🙂
Thanks @mhauru! I am happy with the interface; feel free to merge. |
In addition to removing the kwarg constructor as discussed in #2442, I also removed the
NamedTuple
andDict
constructors, to keep the interface simple. I don't see many people using them, and the user can trivially callGibbs(my_dict...)
orGibbs(pairs(my_namedtuple)...)
if need be.The PR also simplifies a few unrelated lines and expands some docstrings.
Closes #2442