-
-
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
Rename one_plus_dlnf_dlnc to thermodynamic_factor #2727
Rename one_plus_dlnf_dlnc to thermodynamic_factor #2727
Conversation
|
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #2727 +/- ##
========================================
Coverage 99.68% 99.68%
========================================
Files 272 272
Lines 19005 19007 +2
========================================
+ Hits 18946 18948 +2
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. |
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Surely, will try that. Made the changes running |
That too after using |
Not changing the reference of "1 + dlnf/dlnc" in CHANGE.md which I hope is an exception to "everywhere".
|
@tinosulzer, codecov checks are failing. How do we fix that? |
You have to click on the cross which takes you to codecov then see which line is not covered and fix bugs or add tests as appropriate so that the line is covered. You should test this locally e.g. by temporarily adding |
Are you even testing this locally like I suggested or are you using trial and error with the GitHub tests. Please test locally to make sure your fix works. |
I haven't been able to do the developer install to run tests locally. Will be doing it by the books. |
The installation instructions are a bit confusing (hence the GSOC project to improve them) but you should be able to just go to the pybamm root repository where you downloaded it, create a virtual environment via pip or conda, and then do Local installation is a required prerequisite for participating in GSOC |
Thanks, @tinosulzer. I will do it soon. |
Local installation is complete. Working on writing tests now. |
Is this still open? I would like to work on it. |
Hey @ayeankit, I am very close to finishing this PR. |
@tinosulzer , can you please help me out here? I have done the local installation. |
Co-Authored-By: Valentin Sulzer <[email protected]>
@tinosulzer there are two merge conflicts here. |
You have to merge the develop branch and fix the conflicts. |
It will be much more efficient to test your changes locally to make sure coverage passes, instead of relying on the CI, as I explained how to do in this comment #2727 (comment) |
I haven't understood how the print statements can be use for testing coverage. Can we start using pytest or Coverage.py or Pytest-cov like mentioned in this website in the future? Because then we can properly run coverage tests locally. |
You can already use coverage.py locally if you want. That's what the CI uses. But that still requires running all the unit tests, which takes a few minutes. It's much faster to run the individual test files ( |
BTW I had done local tests using |
Thanks, will merge once final test passes |
This is the first test code that I have ever written. @tinosulzer, thank you for your guidance. |
Congrats on writing your first test! |
@all-contributors add @jeromtom for code, tests |
@tinosulzer I've put up a pull request to add @jeromtom! 🎉 |
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes #2726
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: