Пример #1
0
 def apply_B0_stat(self):
     value_stat = self.gui.checkBox_B0.checkState()
     if value_stat == 2:
         yw.yaml_writer_hanle(active_B0='true')
         print('[SET] B0 active: true')
     else:
         yw.yaml_writer_hanle(active_B0='false')
         print('[SET] B0 active: false')
Пример #2
0
 def apply_method_B1(self):
     method = self.gui.comboBox_method_B1.currentText()
     yw.yaml_writer_hanle(method_B1=method)
     print('[SET] B1 measuring method: ' + method)
     if method == 'const':
         self.gui.spinBox_freq_stop_B1.setEnabled(False)
         self.gui.spinBox_freq_step_B1.setEnabled(False)
         self.gui.spinBox_ampl_stop_B1.setEnabled(False)
         self.gui.spinBox_ampl_step_B1.setEnabled(False)
         self.gui.spinBox_off_stop_B1.setEnabled(False)
         self.gui.spinBox_off_step_B1.setEnabled(False)
Пример #3
0
 def apply_downsampling(self):
     downsamples = self.gui.spinBox_downsampling.value()
     yw.yaml_writer_hanle(downsampling=downsamples)
     print('[SET] downsampling factor: ' + str(downsamples))
Пример #4
0
 def apply_samples(self):
     samples = self.gui.spinBox_samples.value()
     yw.yaml_writer_hanle(samples=samples)
     print('[SET] sample rate: ' + str(samples))
Пример #5
0
 def apply_diode_gain(self):
     gain = self.gui.spinBox_diode_gain.value()
     yw.yaml_writer_hanle(diode_gain=gain)
     print('[SET] photo diode gain: ' + str(gain))
Пример #6
0
 def apply_lpower(self):
     power = self.gui.spinBox_lpower.value()
     yw.yaml_writer_hanle(power=power)
     print('[SET] laser power [uW] : ' + str(power))
Пример #7
0
 def apply_temp(self):
     temp = self.gui.spinBox_temp.value()
     yw.yaml_writer_hanle(temp=temp)
     print('[SET] temperature [°C] : ' + str(temp))
Пример #8
0
 def apply_freq_start_B1(self):
     value_freq_start = self.gui.spinBox_freq_start_B1.value()
     yw.yaml_writer_hanle(freq_start_B1=value_freq_start)
     print('[SET] B1 freqency start value: ' + str(value_freq_start))
Пример #9
0
 def apply_off_step_B1(self):
     value_off_step = self.gui.spinBox_off_step_B1.value()
     yw.yaml_writer_hanle(off_step_B1=value_off_step)
     print('[SET] B1 offset step value: ' + str(value_off_step))
Пример #10
0
 def apply_off_stop_B0(self):
     value_off_stop = self.gui.spinBox_off_stop_B0.value()
     yw.yaml_writer_hanle(off_stop_B0=value_off_stop)
     print('[SET] B0 offset stop value: ' + str(value_off_stop))
Пример #11
0
 def apply_ampl_step_B1(self):
     value_ampl_step = self.gui.spinBox_ampl_step_B1.value()
     yw.yaml_writer_hanle(ampl_step_B1=value_ampl_step)
     print('[SET] B1 amplitude step value: ' + str(value_ampl_step))
Пример #12
0
 def apply_ampl_stop_B0(self):
     value_ampl_stop = self.gui.spinBox_ampl_stop_B0.value()
     yw.yaml_writer_hanle(ampl_stop_B0=value_ampl_stop)
     print('[SET] B0 amplitude stop value: ' + str(value_ampl_stop))
Пример #13
0
 def apply_freq_step_B1(self):
     value_freq_step = self.gui.spinBox_freq_step_B1.value()
     yw.yaml_writer_hanle(freq_step_B1=value_freq_step)
     print('[SET] B1 freqency step size: ' + str(value_freq_step))
Пример #14
0
 def apply_freq_stop_B0(self):
     value_freq_stop = self.gui.spinBox_freq_stop_B0.value()
     yw.yaml_writer_hanle(freq_stop_B0=value_freq_stop)
     print('[SET] B0 freqency stop value: ' + str(value_freq_stop))
Пример #15
0
 def apply_measure_time(self):
     mtime = self.gui.spinBox_mtime.value()
     yw.yaml_writer_hanle(meas_time=mtime)
     print('[SET] measurement time [s]: ' + str(mtime))
Пример #16
0
 def apply_method_B0(self):
     method = self.gui.comboBox_method_B0.currentText()
     yw.yaml_writer_hanle(method_B0=method)
     print('[SET] B0 measuring method: ' + method)
Пример #17
0
 def apply_meas_no(self):
     meas_no = self.gui.spinBox_measure_no.value()
     yw.yaml_writer_hanle(measurement=meas_no)
     print('[SET] measurement number: ' + str(meas_no))
Пример #18
0
 def apply_cell_id(self):
     cell_id = self.gui.spinBox_cell_id.value()
     yw.yaml_writer_hanle(cell=cell_id)
     print('[SET] cell\'s id: ' + str(cell_id))
Пример #19
0
import yaml_writer as yw

yw.yaml_writer_hanle()