Hide keyboard shortcuts

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

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

import numpy as np 

import matplotlib.pyplot as plt 

import warnings 

from lsst.sims.maf.plots import HourglassPlot 

from .uniSlicer import UniSlicer 

 

__all__ = ['HourglassSlicer'] 

 

class HourglassSlicer(UniSlicer): 

"""Slicer to make the filter hourglass plots """ 

 

def __init__(self, verbose=True, badval=-666): 

# Inherits from UniSlicer, so nslice=1 and only one 'slice'. 

super(HourglassSlicer,self).__init__(verbose=verbose, badval=badval) 

self.columnsNeeded=[] 

self.slicerName='HourglassSlicer' 

self.plotFuncs = [HourglassPlot,] 

 

def writeData(self, outfilename, metricValues, metricName='', **kwargs): 

""" 

Override base write method: we don't want to save hourglass metric data. 

 

The data volume is too large. 

""" 

pass 

 

def readMetricData(self, infilename): 

""" 

Override base read method to 'pass': we don't save or read hourglass metric data. 

 

The data volume is too large. 

""" 

pass