Coverage for python/lsst/sims/maf/slicers/hourglassSlicer.py : 62%

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
1import numpy as np
2import matplotlib.pyplot as plt
3import warnings
4from lsst.sims.maf.plots import HourglassPlot
5from .uniSlicer import UniSlicer
7__all__ = ['HourglassSlicer']
9class HourglassSlicer(UniSlicer):
10 """Slicer to make the filter hourglass plots """
12 def __init__(self, verbose=True, badval=-666):
13 # Inherits from UniSlicer, so nslice=1 and only one 'slice'.
14 super(HourglassSlicer,self).__init__(verbose=verbose, badval=badval)
15 self.columnsNeeded=[]
16 self.slicerName='HourglassSlicer'
17 self.plotFuncs = [HourglassPlot,]
19 def writeData(self, outfilename, metricValues, metricName='', **kwargs):
20 """
21 Override base write method: we don't want to save hourglass metric data.
23 The data volume is too large.
24 """
25 pass
27 def readMetricData(self, infilename):
28 """
29 Override base read method to 'pass': we don't save or read hourglass metric data.
31 The data volume is too large.
32 """
33 pass