def on_but_tspl(self): logger.debug('on_but_tspl', __name__) try : cp.plottime.close() try : del cp.plottime except : pass except : if not os.path.lexists(fnm.path_data_scan_tstamp_list()) : msg = 'Requested the time plot for NON-EXISTANT FILE: ' \ + str(fnm.path_data_scan_tstamp_list()) + '\nUse "Scan" first...' logger.warning(msg, __name__ ) return cp.plottime = PlotTime(None, ifname = fnm.path_data_scan_tstamp_list(),\ ofname = fnm.path_data_time_plot()) cp.plottime.move(cp.guimain.pos().__add__(QtCore.QPoint(760,160))) cp.plottime.show()
def on_but_tspl(self): logger.debug('on_but_tspl', __name__) try : cp.plottime.close() try : del cp.plottime except : pass except : cp.plottime = PlotTime(None, ifname = fnm.path_data_scan_tstamp_list(),\ ofname = fnm.path_data_time_plot()) cp.plottime.move(cp.guimain.pos().__add__(QtCore.QPoint(760,160))) cp.plottime.show()
def make_psana_cfg_file_for_data_scan (self) : self.path_in = apputils.AppDataPath('CorAna/scripts/psana-data-scan.cfg').path() self.path_out = fnm.path_data_scan_psana_cfg() self.d_subs = {'SKIP' : 'IS_NOT_USED', 'EVENTS' : 'FOR_ALL_EVENTS', 'FNAME_TIMESTAMP_LIST' : fnm.path_data_scan_tstamp_list(), 'FNAME_INTENSITY_MONITORS_DATA' : fnm.path_data_scan_monitors_data(), 'FNAME_INTENSITY_MONITORS_COMMENTS' : fnm.path_data_scan_monitors_commments() } self.print_substitution_dict() self.make_cfg_file()
def on_but_tspl(self): logger.debug('on_but_tspl', __name__) try: cp.plottime.close() try: del cp.plottime except: pass except: cp.plottime = PlotTime(None, ifname = fnm.path_data_scan_tstamp_list(),\ ofname = fnm.path_data_time_plot()) cp.plottime.move(cp.guimain.pos().__add__(QtCore.QPoint(760, 160))) cp.plottime.show()
def make_psana_cfg_file_for_data_scan (self) : self.path_in = apputils.AppDataPath('CorAna/scripts/psana-data-scan.cfg').path() self.path_out = fnm.path_data_scan_psana_cfg() self.d_subs = {'FNAME_XTC' : fnm.path_data_xtc_cond(), 'SKIP' : 'IS_NOT_USED', 'EVENTS' : 'FOR_ALL_EVENTS', 'FNAME_TIMESTAMP_LIST' : fnm.path_data_scan_tstamp_list(), 'FNAME_INTENSITY_MONITORS_DATA' : fnm.path_data_scan_monitors_data(), 'FNAME_INTENSITY_MONITORS_COMMENTS' : fnm.path_data_scan_monitors_commments() } self.print_substitution_dict() self.make_cfg_file()