Esempio n. 1
0
 def __init__(self, parent = None):
     Scan.__init__(self, parent)
     self.axis = 0
     self.N = 1
     self.list = [0.0]
     self.propNames = ["Axis"]
     self.config = ["axis","list","N"]
Esempio n. 2
0
 def __init__(self, parent = None):
     Scan.__init__(self, parent)
     self.axis = 0
     self.N = 1
     self.list = [0.0]
     self.fname = ""
     self.propNames = ["Axis","File"]
     self.config = ["axis","fname","N"]
     self.parse_list()
Esempio n. 3
0
 def __init__(self, parent = None):
     Scan.__init__(self, parent)
     self.axis = 0
     self.min = 0.0
     self.max = 25.6
     self.N = 257
     self.dv = 0.1
     self.fwd = True # start in forward direction
     self.propNames = ["Axis","Minimum","Maximum","# Steps","Step"]
     self.is_loop = True
Esempio n. 4
0
 def edit_label(self, event, pos):
     Scan.edit_label(self, event, pos)
     if pos==1:
         event.Veto()
         dlg = wx.FileDialog(self.host, "Choose input file", os.getcwd(), self.fname, "Data files (*.dat,*.csv,*.txt)|*.dat;*.csv;*.txt|All files (*.*)|*.*", wx.OPEN)
         if dlg.ShowModal()==wx.ID_OK:
             self.fname = dlg.GetPath()
             self.parse_list()
             self.autoname = False
         dlg.Destroy()
         self.propNodes[1] = os.path.basename(self.fname)
         self.set_property_nodes()
Esempio n. 5
0
 def refresh(self):
     Scan.refresh(self)
     self.N = len(self.list)
Esempio n. 6
0
 def refresh(self):
     Scan.refresh(self)
     self.fwd = True