Make get_spatial_var private#3755
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #3755 +/- ##
========================================
Coverage 99.59% 99.59%
========================================
Files 259 259
Lines 21353 21353
========================================
Hits 21266 21266
Misses 87 87 ☔ View full report in Codecov by Sentry. |
This will require a note in the CHANGELOG too as a breaking change (even if this function was not being used by a lot of users) |
4c04568 to
8d30042
Compare
Added in the changelog.md |
31acde0 to
ca49a51
Compare
|
@Akhil-Sharma30 Just a note, I would suggest that you don't force push if you can avoid it. It overwrites history on git and makes it harder to see what was reviewed. |
Okay sure I will take care of that in future. |
Saransh-cpp
left a comment
There was a problem hiding this comment.
See #3752 (review)
Could you please also change the PR title to reflect that this is deprecating something and not fixing a bug? Thanks!
|
@Akhil-Sharma30 Are you still working on this and #3752 |
Yes, I was busy with some other work. |
|
@Saransh-cpp What is left on this one? Just deprecation warnings and changing the PR title? |
|
And changelog, that should be it. |
|
@Akhil-Sharma30 Are you still working on this? |
pybamm.QuickPlot.py
kratman
left a comment
There was a problem hiding this comment.
The changes seem minor and since the function only appears in this file, I don't think the deprecation warning is needed
As far as I can tell the changes were made. We can open a new ticket for the deprecation warning if it is a major concern before the release. It seems like the function is not widely used, so it is probably not needed.
* Make `get_spatial_var` private `quick_plot.py` * Remove round brackets around optional keyword in `QuickPlot.create_gif` * Make Args in `dynamic_plot` optional * Document dynamic arg in `pybamm.QuickPlot.plot` * Add `get_spatial_var` info in `breaking changes` inside `CHANGELOG.md` --------- Co-authored-by: Robert Timms <43040151+rtimms@users.noreply.github.com> Co-authored-by: Eric G. Kratz <kratman@users.noreply.github.com>
Description
In this PR fixed the following bugs in
pybamm.QuickPlot.py:pybamm.QuickPlot.create_gifremoved the round brackets around the optional keyword.pybamm.QuickPlot.dynamic_plotmade the Args as optional.pybamm.QuickPlot.get_spatial_varmade private.pybamm.QuickPlot.plotDocumented dynamic arg.Fixes #3754
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(or$ nox -s pre-commit) (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(or$ nox -s tests)$ python run-tests.py --doctest(or$ nox -s doctests)You can run integration tests, unit tests, and doctests together at once, using
$ python run-tests.py --quick(or$ nox -s quick).Further checks: