Skip to content
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

docstring fixes to pybamm.plotting.quick_plot #3970

Merged
merged 5 commits into from
Apr 10, 2024

Conversation

neilsengupta-elysia
Copy link
Contributor

@neilsengupta-elysia neilsengupta-elysia commented Apr 8, 2024

Description

Practise contributing to issue for Hackathon:

In the file pybamm.plotting.quick_plot.py, added "optional" keyword to "step" argument in dynamic_plot function. Removed round brackets around optional keywords in the arguments "number_of_images", "duration", "output_filename" in create_gif function.

Related #3392 - Improve documentation

Type of change

Documentation Update

add "optional" keyword to "step" argument in dynamic_plot function. Removed round brackets around optional keywords in the arguments "number_of_images", "duration", "output_filename" in create_gif function.
Copy link

codecov bot commented Apr 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.58%. Comparing base (c204bdd) to head (dc05fea).
Report is 2 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #3970   +/-   ##
========================================
  Coverage    99.58%   99.58%           
========================================
  Files          257      257           
  Lines        21251    21251           
========================================
  Hits         21163    21163           
  Misses          88       88           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Sponsor Member

@brosaplanella brosaplanella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small comment, but looks good overall!

pybamm/plotting/quick_plot.py Show resolved Hide resolved
Copy link
Contributor

@kratman kratman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While the syntax used in your issue description

Fixes # Issue 3392 - Improve documentation (partial fix)

will not work because it is incorrectly formatted, you should not mark a partial fix as with the fixes tag. When used correctly the fixes keyword causes the issue to be closed. This would me that this 10 line change would close a much larger ticket.

Usually you can do

Related #3392

to tag the issue without closing it

@neilsengupta-elysia
Copy link
Contributor Author

Fixed PR description to remove "fixes" keyword

@kratman
Copy link
Contributor

kratman commented Apr 10, 2024

@neilsengupta-elysia I updated your PR description. Having Related # issue 3392 does not work, it needs to be Related #3392. If there are any spaces between # and the number it will not link properly

@kratman kratman merged commit f050d58 into pybamm-team:develop Apr 10, 2024
38 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants