Skip to content

Commit

Permalink
black updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
humnaawan committed Oct 31, 2024
1 parent baadf77 commit c84a3dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 4 additions & 3 deletions rubin_sim/maf/maf_contrib/star_counts/starcount_bymass.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,12 @@ def noise_calc(band):
m5 = {"u": 23.9, "g": 25.0, "r": 24.7, "i": 24.0, "z": 23.3, "y": 22.1}
sigma = 0.03
sigma_sys = 0.005

def fun(x):
sigma_sys**2
+ (0.04 - gamma[band]) * 10 ** (0.4 * (x - m5[band]))
+ gamma[band] * 10 ** (0.8 * (x - m5[band]))
- sigma**2
+(0.04 - gamma[band]) * 10 ** (0.4 * (x - m5[band]))
+gamma[band] * 10 ** (0.8 * (x - m5[band]))
-(sigma**2)

return newton(fun, 25)

Expand Down
3 changes: 1 addition & 2 deletions rubin_sim/maf/metrics/visit_groups_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ 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."""

def __init__(
self,
Expand Down

0 comments on commit c84a3dc

Please sign in to comment.