-
Notifications
You must be signed in to change notification settings - Fork 37
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
tickets/SP-1600: updates to pass ruff checks #429
base: main
Are you sure you want to change the base?
Conversation
c84a3dc
to
8466b73
Compare
Sorry. - I should have provided more context around ephem ... I was kind of curious to see what you'd do about this particular issue, actually.
|
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.
I don't want to add ephem back into the dependencies, so we should probably either deprecate all of the star_counts code that needs it, or move to a different ra/dec to galactic l/b conversion that doesn't depend on ephem.
|
||
Parameters | ||
---------- | ||
data_slice : numpy.array | ||
Numpy structured array containing the data related to the visits provided by the slicer. | ||
Numpy structured array containing the data related to the |
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.
This is the wrong level of indent I think -- only four spaces indent (and not tabs) for parameter descriptions.
|
||
Parameters | ||
---------- | ||
min_gap : float, optional | ||
Minimum time to consider something part of a pair (minutes). Default 15. | ||
Minimum time to consider something part of a pair (minutes). |
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.
Wrong level of indent for a parameter description.
@@ -65,7 +69,8 @@ def run(self, data_slice, slice_point=None): | |||
|
|||
|
|||
class VisitGroupsMetric(BaseMetric): | |||
"""Count the number of visits per night within delta_t_min and delta_t_max.""" | |||
"""Count the number of visits per night within delta_t_min | |||
and delta_t_max.""" |
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.
This matches ruff, but since you're here editing ...
the docstring after the "init" below with the parameters should come up to this section of documentation as Parameters and reformat into numpydoc style.
"""Reduce to max number of total visits on all nights with more than minNVisits, | ||
within any 'window' (default=30 nights).""" | ||
"""Reduce to max number of total visits on all nights with more than | ||
minNVisits, within any 'window' (default=30 nights).""" |
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.
The """ should go on a new line. (rubin docstyle )
No description provided.