def ROI_Spectrum_Saving(self): '''Saving the roi pulses and their respective timing to later perform an integration to find the MDM''' if not self.calibration: self.calibration_browse() list_time=np.asarray(self.list_time) list_channel=np.asarray(self.list_channel) calibration=np.asarray(self.calibration_data) sync_time=np.asarray(self.sync_time) lower,ok=QInputDialog.getDouble(self, 'Lower ROI', 'Lower Bound (MeV)',9.6,0,14,4) upper,ok2=QInputDialog.getDouble(self, 'Upper ROI', 'Upper Bound (MeV)',10.9,0,14,4) if ok and ok2: # #outputs the pulses and associated times to save and integrate to # #calculate the detection probability at integrated time windows s=time.time() print('Begin processing data') pulses,times=Timing.ROI_Timing(sync_time,int(len(sync_time)), list_time,list_channel, self.delta_time,8192, calibration,upper,lower) print('Done processing in {:.2f}s'.format(time.time()-s)) return pulses,times