Coverage for python/lsst/sims/maf/metrics/phaseGapMetric.py : 95%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
""" Measure the maximum gap in phase coverage for observations of periodic variables. """ metricName='Phase Gap', **kwargs): """ Construct an instance of a PhaseGapMetric class
:param col: Name of the column to use for the observation times, commonly 'observationStartMJD' :param nPeriods: Number of periods to test :param periodMin: Minimum period to test (days) :param periodMax: Maximimum period to test (days) :param nVistisMin: minimum number of visits necessary before looking for the phase gap """
""" Run the PhaseGapMetric. :param dataSlice: Data for this slice. :param slicePoint: Metadata for the slice (Optional as not used here). :return: a dictionary of the periods used here and the corresponding largest gaps. """ return self.badval # Create 'nPeriods' evenly spaced periods within range of min to max. else:
# For each period, calculate the phases. # Find the largest gap in coverage.
""" At each slicepoint, return the mean gap value. """
""" At each slicepoint, return the median gap value. """
""" At each slicepoint, return the period with the largest phase gap. """
""" At each slicepoint, return the largest phase gap value. """ |