Modifies QuickPlot.plot to take a list of times and show superimposed plots in case of 1D variables.#4529
Conversation
|
I will be working on adding different colors and a legend to the time plots to make them easier to differentiate. Please let me know if you have any suggestions for changes or improvements. |
arjxn-py
left a comment
There was a problem hiding this comment.
Awesome work @medha-14, you might just want to look into the keyerror that's being raised.
You can try debugging that by running one test at a time something like - pytest tests/unit/test_plotting/test_quick_plot.py::test_plot_1plus1D_spme Otherwise this looks really good.
|
I will work on fixing the failing tests. Should I also start working on adding new tests for this method? |
@medha-14 Coverage reports will only start appearing for this PR after tests pass. You will need to make sure all new code is covered by tests as well as fixing the existing tests |
|
I have fixed the failing tests and tried to add tests , using a list of time in the plot function. I am open to work on any suggested improvements. |
|
Hi @kratman, could you review this and let me know what further changes I should make? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #4529 +/- ##
===========================================
- Coverage 99.25% 99.22% -0.04%
===========================================
Files 302 302
Lines 22838 22821 -17
===========================================
- Hits 22667 22643 -24
- Misses 171 178 +7 ☔ View full report in Codecov by Sentry. |
|
Are there any other changes or improvements that I could make to further enhance the implementation? |
|
@medha-14 Sorry for the delay on this one, I will start reviewing this again |
kratman
left a comment
There was a problem hiding this comment.
Small findings, I will do a full review another day
|
Please also add a change log entry. Note that we are doing a release, so once #4598 is merged, there will likely be a merge conflict in the changelog |
kratman
left a comment
There was a problem hiding this comment.
This should be the last round of findings. Once these are resolved I will approve. Please double check that the figures still appear as you originally intended. Just good to do a visual double check. I will review those as well
agriyakhetarpal
left a comment
There was a problem hiding this comment.
Thanks, @medha-14! I only skimmed through the changes and haven't been involved in the review here, I'll request a review from Eric for the final merge.
Co-authored-by: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com>
|
@allcontributors add @medha-14 for code |
|
I will merge once I see the windows 3.9 check pass. I do not expect a problem, so this should be merged in a couple minutes |
|
Thanks a lot everyone! |
* Revert "Modifies `QuickPlot.plot` to take a list of times and show superimposed plots in case of 1D variables. (#4529)" This reverts commit b50d4a9. * style: pre-commit fixes * Fix changelog with PR number --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Revert "Modifies `QuickPlot.plot` to take a list of times and show superimposed plots in case of 1D variables. (#4529)" This reverts commit b50d4a9. * style: pre-commit fixes * Fix changelog with PR number --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

Description
Fixes #4271
Related to #3164
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: