diff --git a/rubin_sim/maf/maf_contrib/star_counts/starcount_bymass.py b/rubin_sim/maf/maf_contrib/star_counts/starcount_bymass.py index 74155752..d8d2e176 100644 --- a/rubin_sim/maf/maf_contrib/star_counts/starcount_bymass.py +++ b/rubin_sim/maf/maf_contrib/star_counts/starcount_bymass.py @@ -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) diff --git a/rubin_sim/maf/metrics/visit_groups_metric.py b/rubin_sim/maf/metrics/visit_groups_metric.py index b1442cd2..6870d4e9 100644 --- a/rubin_sim/maf/metrics/visit_groups_metric.py +++ b/rubin_sim/maf/metrics/visit_groups_metric.py @@ -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,