コード例 #1
0
 def __init__(
     self,
     app,
     h_limits=(-1, 1),
     v_limits=(-1, 1),
     h_unit='',
     v_unit='',
     h_spinbox_decimals=4,
     v_spinbox_decimals=4,
     h_spinbox_step=0.1,
     v_spinbox_step=0.1,
     use_external_range_sync=False,
     circ_roi_size=1.0,
 ):
     self.h_spinbox_decimals = h_spinbox_decimals
     self.v_spinbox_decimals = v_spinbox_decimals
     self.h_spinbox_step = h_spinbox_step
     self.v_spinbox_step = v_spinbox_step
     self.h_limits = h_limits
     self.v_limits = v_limits
     self.h_unit = h_unit
     self.v_unit = v_unit
     self.use_external_range_sync = use_external_range_sync
     self.circ_roi_size = circ_roi_size
     Measurement.__init__(self, app)
コード例 #2
0
    def __init__(self, app):

        self.ui_filename = sibling_path(__file__, "sine_gen.ui")

        self.ui = load_qt_ui_file(self.ui_filename)

        self.ui.setWindowTitle(self.name)

        Measurement.__init__(self, app)
コード例 #3
0
 def __init__(self,
              app,
              h_limits=(-1, 1),
              v_limits=(-1, 1),
              h_unit='',
              v_unit=''):
     self.h_limits = h_limits
     self.v_limits = v_limits
     self.h_unit = h_unit
     self.v_unit = v_unit
     Measurement.__init__(self, app)
コード例 #4
0
    def __init__(self, app):

        # Define ui file to be used.
        self.ui_filename = sibling_path(__file__, "rand_gen_optimizer.ui")

        #Load ui file using ScopeFoundry helper function
        self.ui = load_qt_ui_file(self.ui_filename)

        # set Measurement UI window title
        self.ui.setWindowTitle(self.name)

        # Run super class Measurement init method.
        Measurement.__init__(self, app)
コード例 #5
0
ファイル: mks_600_measure.py プロジェクト: wcyjames/stackbot
 def __init__(self, app):
     Measurement.__init__(self, app)
コード例 #6
0
ファイル: power_scan.py プロジェクト: wcyjames/stackbot
 def __init__(self, app, shutter_open_lq_path = None):
     self.ui_filename = sibling_path(__file__, "power_scan.ui")
     Measurement.__init__(self, app)
     if shutter_open_lq_path != None:
         self.shutter_open = app.lq_path(shutter_open_lq_path)
コード例 #7
0
 def __init__(self, app):
     self.ui_filename = sibling_path(__file__, "lakeshore_measure.ui")
     Measurement.__init__(self, app)
コード例 #8
0
 def __init__(self, app, name=None, hw_name='attocube_xyz_stage'):
     self.hw_name = hw_name
     Measurement.__init__(self, app, name=name)
コード例 #9
0
    def __init__(self, app):

        Measurement.__init__(self, app)
        self.dt = 0.1
コード例 #10
0
 def __init__(self, app):
     self.ui_filename = sibling_path(__file__, "relay_widget.ui")
     self.ui = load_qt_ui_file(self.ui_filename)
     self.ui.setWindowTitle(self.name)
     Measurement.__init__(self, app)
     self.dt = 0.1
コード例 #11
0
 def __init__(self, app, name=None, hw_name='asi_stage'):
     self.hw_name = hw_name
     Measurement.__init__(self, app, name=name)
コード例 #12
0
 def __init__(self, app, name=None, hw_name='esp300_xyz_stage'):
     self.hw_name = hw_name
     Measurement.__init__(self, app, name=name)
     self.hw = self.app.hardware[self.hw_name]
コード例 #13
0
    def __init__(self, app, name=None, settings_dict=dict(sample='app/sample'), ):
        
        self.settings_dict = settings_dict

        Measurement.__init__(self, app, name=name)
コード例 #14
0
 def __init__(self, app, name=None, hw_name="xbox_controller"):
     self.hw_name = hw_name
     Measurement.__init__(self, app, name=name)