Esempio n. 1
0
 def reset_class_variables(self):
     """
     Create the reader object and define initial states for class variables
     """
     self.current_datainfo = None
     self.current_dataset = None
     self.data1d = []
     self.data2d = []
     self.raw_data = None
     self.errors = set()
     self.logging = []
     self.output = []
     self.parent_class = u''
     self.detector = Detector()
     self.collimation = Collimation()
     self.aperture = Aperture()
     self.process = Process()
     self.trans_spectrum = TransmissionSpectrum()
Esempio n. 2
0
 def reset_state(self):
     self.current_dataset = plottable_1D(np.empty(0), np.empty(0),
                                         np.empty(0), np.empty(0))
     self.current_datainfo = DataInfo()
     self.datasets = []
     self.raw_data = None
     self.errors = set()
     self.logging = []
     self.output = []
     self.detector = Detector()
     self.collimation = Collimation()
     self.aperture = Aperture()
     self.process = Process()
     self.source = Source()
     self.sample = Sample()
     self.trans_spectrum = TransmissionSpectrum()
     self.upper = 5
     self.lower = 5