Example #1
0
 def normalize(self,area=False):
     """
     Normalize the pulse so that the peak has a value of 1.0
     """
     if area:
         self.data = u.normalize_area(self.data)
     else:
         minimum = np.mean(self.getOffpulse())
         self.data = u.normalize(self.data,minimum=minimum)
Example #2
0
 def normalize(self, area=False):
     """
     Normalize the pulse so that the peak has a value of 1.0
     """
     if area:
         self.data = u.normalize_area(self.data)
     else:
         minimum = np.mean(self.getOffpulse())
         self.data = u.normalize(self.data, minimum=minimum)