Skip to content
Snippets Groups Projects
Commit 4f3f6925 authored by Jona Riedel's avatar Jona Riedel
Browse files

Fixed some minor bugs

parent 8eae11eb
No related branches found
No related tags found
No related merge requests found
...@@ -186,7 +186,7 @@ class MainWindow(QMainWindow): ...@@ -186,7 +186,7 @@ class MainWindow(QMainWindow):
self.offset.setValue(7.5e-3) self.offset.setValue(7.5e-3)
self.measure_offset = QCheckBox("Measure offset voltage instead of using the above value") self.measure_offset = QCheckBox("Measure offset voltage instead of using the above value")
self.measure_offset.setChecked(True)
self.delay = QDoubleSpinBox() #only softwrare delay leave it like this self.delay = QDoubleSpinBox() #only softwrare delay leave it like this
# Minimum 0 Maximum 99.99 and 2 decimals places # Minimum 0 Maximum 99.99 and 2 decimals places
...@@ -199,6 +199,7 @@ class MainWindow(QMainWindow): ...@@ -199,6 +199,7 @@ class MainWindow(QMainWindow):
self.address_gpib.setValue(1) self.address_gpib.setValue(1)
self.verbose = QCheckBox("Verbose") self.verbose = QCheckBox("Verbose")
self.verbose.setChecked(True)
self.rfa = QDoubleSpinBox() # here also set the default value self.rfa = QDoubleSpinBox() # here also set the default value
self.rfa.setDecimals(6) self.rfa.setDecimals(6)
...@@ -369,8 +370,8 @@ class Worker(QRunnable): ...@@ -369,8 +370,8 @@ class Worker(QRunnable):
self.window.sc.axes[2].scatter(np.absolute(current_dens),np.absolute(radiance),label = f"Measurement {self.window.counter}") self.window.sc.axes[2].scatter(np.absolute(current_dens),np.absolute(radiance),label = f"Measurement {self.window.counter}")
self.window.sc.axes[3].scatter(np.absolute(radiance),eqe,label = f"Measurement {self.window.counter}") self.window.sc.axes[3].scatter(np.absolute(radiance),eqe,label = f"Measurement {self.window.counter}")
for i in range(4): # for i in range(4):
self.window.sc.axes[i].legend() # self.window.sc.axes[i].legend()
self.window.sc.draw_idle() self.window.sc.draw_idle()
......
...@@ -112,8 +112,8 @@ def ivv_scan( ...@@ -112,8 +112,8 @@ def ivv_scan(
print(f"Measured {currents[-1]*1e3:.3f} mA and" print(f"Measured {currents[-1]*1e3:.3f} mA and"
+ f" {photo_voltage[-1]*1e3:.3f} mV at {v:.2f} V" + f" {photo_voltage[-1]*1e3:.3f} mV at {v:.2f} V"
) )
source.display(f"{v:.2f} {currents[-1]*1e-3:.2f mA") source.display(f"{v:.2f} V, {currents[-1]*1e3:.3f} mA")
photo.display(f"{photo_voltage[-1]:.2f V") photo.display(f"{photo_voltage[-1]:.2f} V")
source.set_voltage(0) source.set_voltage(0)
source.display_off() source.display_off()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment