-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
Issue 1182 verbose outputs and tagging PyBaMM citations #2862
Issue 1182 verbose outputs and tagging PyBaMM citations #2862
Conversation
@rtimms this implementation differs from what I had thought about doing initially with a metaclass and Note: tests fail due to CasADi, will merge develop after they pass |
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.
Looks good to me, thanks @agriyakhetarpal !
Ready to merge once tests pass |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #2862 +/- ##
========================================
Coverage 99.69% 99.69%
========================================
Files 273 273
Lines 19071 19083 +12
========================================
+ Hits 19012 19024 +12
Misses 59 59
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
why did you skip ci? |
In the last commit I only added comments to improve coverage, I did not know that skipping CI this way would not run the coverage workflow |
I'll do a force push to re-run them if that would be okay |
95ddd80
to
fc1bfad
Compare
Yeah you have to run all the tests to get CI, it's usually worth doing anyway unless you really did only add extra tests. Still need to fix one line of coverage |
Thanks, I fixed the coverage – Though I don't know how to fix |
thanks @agriyakhetarpal ! I'm happy to merge even if codacy isn't happy. looks like failing test is random and will be fixed by #2844 |
Description
Adds a caller method for
citations.py
to tag PyBaMM citations to their use of particular models or solvers and adds verbose output while printing citationsFixes #1182
Type of change
Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s. If necessary, also add to the list of breaking changes.
Key checklist:
$ pre-commit run
(see CONTRIBUTING.md for how to set this up to run automatically when committing locally, in just two lines of code)$ python run-tests.py --all
$ python run-tests.py --doctest
You can run unit and doctests together at once, using
$ python run-tests.py --quick
.Further checks: