-
Notifications
You must be signed in to change notification settings - Fork 2
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 updating #118
docstring updating #118
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
list
of float
(etc) needs to change to list
[float
] (etc)
exptime : `float` | ||
The exposure time to use per visit (seconds). | ||
Default 29.2 | ||
filter1s : `list` of `str` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
list
[str
] rather than list
of str
(https://developer.lsst.io/python/numpydoc.html#py-docstring-parameter-types-sequences)
HA_min(_max) : float | ||
footprints : `rubin_scheduler.scheduler.utils.footprints.Footprints` | ||
The footprints to be used. | ||
night_pattern : `list` of `bool` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
list
[bool
]
The weight on basis function that tries to stay avoid filter changes. | ||
Default 3.0 (uniteless). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unitless
exptime : `float` | ||
The exposure time to use per visit (seconds). | ||
Default 29.2 | ||
filter1s : `list` of `str` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
list
[str
]
nside : `int` | ||
The HEALpix nside to use. Defaults to DEFAULT_NSIDE | ||
filtername : `str` | ||
The filter name for the first observation. Default "g". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where we have a default value, it will show up in the docstring when this is built in the docs (see first screenshot). Because the docstring and the call are right next to each other, we don't have to repeat the default values in the docstring (and, as you can see in the second screenshot, it can make it all look messier).
I think if we're using None so that it defaults to some other value within the code, that "Default None will be set to xxxx" is useful, or it can be useful to know if we're setting the default for a good reason that other people should know (and then probably not change) - but otherwise we should probably get out of the habit of repeating our defaults.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
d384db2
to
813e633
Compare
Lots of docstring formatting in example_scheduler.py