Signal_import _from_file finished
1 unresolved thread
1 unresolved thread
Signal Importer is able to import signals from File using genfromtxt
Merge request reports
Activity
25 def performSetValue(self, quant, value, sweepRate=0.0, options={}): 26 """Perform the Set Value instrument operation. This function should 27 return the actual value set by the instrument""" 28 # just return the value 29 return value 30 31 32 def performGetValue(self, quant, options={}): 33 """Perform the Get Value instrument operation""" 34 # proceed depending on quantity 35 if quant.name == 'Signal': 36 # if asking for signal, start with getting values of other controls 37 DATAPATH=self.getValue('Datapath') 38 skiph=int(self.getValue('Skip Header')) 39 skipf=int(self.getValue('Skip Footer')) 40 data= np.genfromtxt(DATAPATH, skip_header=skiph, skip_footer=skipf) @d, please add option to change delimiter (e.g. to use csv-Files)
Edited by Niklas Borcherschanged this line in version 2 of the diff
assigned to @d
mentioned in commit fe84b81b
Please register or sign in to reply