def set_value_clicked(self, widget, data=None): key = self.my_widgets['iotable'].get_choice("Set", 'o') if (key == "<empty>"): return value = float(self.my_widgets['setentry'].get_text()) worker.feed('''f_set['%s'](%f)'''%(key, value)) return
def set_value_clicked(self, widget, data=None): key = self.my_widgets['iotable'].get_choice("Set", 'o') if (key == "<empty>"): return value = float(self.my_widgets['setentry'].get_text()) worker.feed('''f_set['%s'](%f)''' % (key, value)) return
def run(self): worker.feed(''' try: latestdata = kernel_PIDlock(run_desc, gui_exports) finally: gui_exports['on_finished']() ''') return
def run(self): worker.feed(''' try: latestdata = kernel_TimeDepScan(run_desc, gui_exports) finally: gui_exports['on_finished']() ''') return
def run(self): worker.feed(''' try: execfile("''' + __main__.DAQ_HOME + '''/scripts/autoload.py") finally: gui_exports['on_finished']() ''') return
def run(self): worker.feed('execfile("%s/%s.py")'%(SCRIPT_DIR, self.active_script)) worker.feed(''' try: RunScript(*script_args) finally: gui_exports['on_finished']() ''') return
def run(self): worker.feed('execfile("%s/%s.py")' % (SCRIPT_DIR, self.active_script)) worker.feed(''' try: RunScript(*script_args) finally: gui_exports['on_finished']() ''') return
def run(self): worker.feed(''' try: database = kernel_1DScan(run_desc, gui_exports) (datapoints, validmask) = database.get_all_data_with_mask() for i in range(datapoints.shape[0]): if (validmask[i] != data.VALID): datapoints = datapoints[1:i] break fit = linear_fit(datapoints[:,0:2]) print "Obtained fit: y = %g + %g*x, with std dev %g and %g respectively"%(fit[0], fit[1], fit[2], fit[3]) finally: gui_exports['on_finished']() ''') return
def run(self): worker.feed( """ try: database = kernel_1DScan(run_desc, gui_exports) (datapoints, validmask) = database.get_all_data_with_mask() for i in range(datapoints.shape[0]): if (validmask[i] != data.VALID): datapoints = datapoints[1:i] break fit = linear_fit(datapoints[:,0:2]) print "Obtained fit: y = %g + %g*x, with std dev %g and %g respectively"%(fit[0], fit[1], fit[2], fit[3]) finally: gui_exports['on_finished']() """ ) return
def zeroall_value_clicked(self, widget, data=None): for key in self.open_io_set_streams.keys(): if (('Magnet' in key) or ('ITC' in key)): continue worker.feed('''f_set['%s'](0.0)''' % (key)) return
def zeroall_value_clicked(self, widget, data=None): for key in self.open_io_set_streams.keys(): if (('Magnet' in key) or ('ITC' in key)): continue worker.feed('''f_set['%s'](0.0)'''%(key)) return