Ejemplo n.º 1
0
 def __init__(self, dataset):
     super().__init__(dataset)
     res = AskUser(["Rolling Average Width: "], defaults=[3])
     width = int(res[0])
     self.data = [
         Calculations.findBackgroundByAverage(self.dataset,
                                              startPoint=sp,
                                              endPoint=(sp + width))
         for sp in range(len(dataset.getHorizontalAt(0)) - width)
     ]
Ejemplo n.º 2
0
 def __init__(self, dataset, start=None, width=None):
     super().__init__(dataset)
     if start != None and width != None:
         info = [start, width]
     else:
         info = AskUser(["Background Starting Cycle: ", "Background Width: "], defaults=[0, 5])
     self.logY = dataset.logY
     bg = np.array(Calculations.findBackgroundByAverage(self.dataset, startPoint=int(info[0]), endPoint=(int(info[1])-int(info[0]))))
     inner = np.array(dataset.getPlane())
     self.data = [i - bg for i in inner]
Ejemplo n.º 3
0
 def __init__(self, dataset, start=None, width=None):
     super().__init__(dataset)
     if start != None and width != None:
         info = [start, width]
     else:
         info = AskUser(
             ["Background Starting Cycle: ", "Background Width: "],
             defaults=[0, 5])
     self.logY = dataset.logY
     bg = np.array(
         Calculations.findBackgroundByAverage(self.dataset,
                                              startPoint=int(info[0]),
                                              endPoint=(int(info[1]) -
                                                        int(info[0]))))
     inner = np.array(dataset.getPlane())
     self.data = [i - bg for i in inner]
Ejemplo n.º 4
0
 def __init__(self, dataset):
     super().__init__(dataset)
     rang = range(len(self.dataset.getVerticalAt(0)))
     self.data = np.array([
         Calculations.getRMSFromY(self.dataset, i) for i in rang
     ]).transpose()
Ejemplo n.º 5
0
 def __init__(self, dataset):
     super().__init__(dataset)
     rang = range(len(self.dataset.getVerticalAt(0)))
     self.data = np.array([Calculations.getRMSFromY(self.dataset, i) for i in rang]).transpose()
Ejemplo n.º 6
0
 def __init__(self, dataset):
     super().__init__(dataset)
     res = AskUser(["Rolling Average Width: "], defaults=[3])
     width = int(res[0])
     self.data = [Calculations.findBackgroundByAverage(self.dataset, startPoint=sp, endPoint=(sp+width)) for sp in range(len(dataset.getHorizontalAt(0))-width)]