Skip to content

Commit

Permalink
Merge pull request #384 from lsst/u/yoachim/periodic-detect
Browse files Browse the repository at this point in the history
update import
  • Loading branch information
yoachim authored Nov 30, 2023
2 parents 48aab00 + be81754 commit 5bd45b7
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 5bd45b7

Please sign in to comment.