Skip to content

Commit

Permalink
update import
Browse files Browse the repository at this point in the history
  • Loading branch information
yoachim committed Nov 30, 2023
1 parent 48aab00 commit be81754
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rubin_sim/maf/metrics/periodic_detect_metric.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
__all__ = ("PeriodicDetectMetric",)

import numpy as np
import rubin_scheduler.utils as utils
import scipy

from rubin_sim.maf.utils import m52snr
from rubin_sim.maf.utils import m52snr, stellar_mags

from .base_metric import BaseMetric

Expand Down Expand Up @@ -88,7 +87,7 @@ def run(self, data_slice, slice_point=None):
if n_pts > p2:
for period, starMag, amplitude in zip(self.periods, self.star_mags, self.amplitudes):
chi_sq_1 = 0
mags = utils.stellar_mags(self.sed_template, rmag=starMag)
mags = stellar_mags(self.sed_template, rmag=starMag)
for filtername in u_filters:
in_filt = np.where(data_slice[self.filter_col] == filtername)[0]
lc = (
Expand Down

0 comments on commit be81754

Please sign in to comment.