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

Fix of Issue #680 #1359

Merged
merged 9 commits into from Nov 30, 2020
Merged

Fix of Issue #680 #1359

merged 9 commits into from Nov 30, 2020

Conversation

KevinCawley
Copy link
Contributor

@KevinCawley KevinCawley commented Nov 25, 2020

Read through the files in tardis and address all instances of issue #680 that I found.

Description

Issue #680, #680, has to deal with type-hinting in PyCharm. There are certain docstring syntaxs that break type-hinting, such as Paramaters: (Any keyword with a : following). Also, under the keywords, if you define a var: "~" it also breaks type-hinting, so that was removed. All of the keywords are now capitalized with no : following them, and they have the appropriate number of ----- in the line below that matches the keyword's character length. All variables are in the format of "Var : type" with an option description indented by one tab in the following line. There is one carriage return between the last variable and a new keyword in the docstring if applicable. Removed leading and trailing carriage returns from the docstrings as well to match the numpy docstring standard.

Motivation and Context

This is a bugfix and a quality-of-life issue that makes it easier to write the code and interact with it, as you can also see descriptions of each variable when applicable if there is the correct docstring formatting.

How Has This Been Tested?

I have been unable to test this, but I have re-read all of the files in tardis 3 times to make sure I have the right format.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have assigned/requested two reviewers for this pull request.

@codecov
Copy link

codecov bot commented Nov 25, 2020

Codecov Report

Merging #1359 (0f7233f) into master (ca7cfcb) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1359   +/-   ##
=======================================
  Coverage   71.77%   71.77%           
=======================================
  Files          66       66           
  Lines        5077     5077           
=======================================
  Hits         3644     3644           
  Misses       1433     1433           
Impacted Files Coverage Δ
tardis/tardis/base.py 5.55% <0.00%> (ø)
tardis/tardis/io/util.py 73.29% <0.00%> (ø)
tardis/tardis/io/decay.py 89.65% <0.00%> (ø)
tardis/tardis/util/base.py 77.77% <0.00%> (ø)
tardis/tardis/model/base.py 88.29% <0.00%> (ø)
tardis/tardis/plasma/base.py 58.27% <0.00%> (ø)
tardis/tardis/model/density.py 92.53% <0.00%> (ø)
tardis/tardis/io/model_reader.py 97.70% <0.00%> (ø)
tardis/tardis/io/parsers/csvy.py 89.74% <0.00%> (ø)
tardis/tardis/montecarlo/base.py 84.61% <0.00%> (ø)
... and 12 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ca7cfcb...0f7233f. Read the comment docs.

Going through and writing documentation guidelines, noticed that the carriage returns at line 450 and 456 were missing somehow, most likely from me missing them. I added those two carriage returns to make them consistent with the rest of the docstrings.
@wkerzendorf wkerzendorf merged commit 6564a5e into tardis-sn:master Nov 30, 2020
@andrewfullard andrewfullard moved this from In progress to Done in Documentation Apr 26, 2021
atharva-2001 pushed a commit to atharva-2001/tardis that referenced this pull request Oct 1, 2021
* Inside of tardis/docs/pphysics/plasma/plasma_plots updated two files multi-line # to be docstrings where appropriate

* Some more documentation updates

* Finished issue tardis-sn#680

* Fixed the last file for tardis-sn#680

* Fixed two random indentation irregularities found upon review

* Update base.py

* Update base.py

* Update packet_source.py

Going through and writing documentation guidelines, noticed that the carriage returns at line 450 and 456 were missing somehow, most likely from me missing them. I added those two carriage returns to make them consistent with the rest of the docstrings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Documentation
  
Done
Development

Successfully merging this pull request may close these issues.

Many docstrings are inconsistent with the numpydoc format
3 participants