fixing a minor bug with cal widget
@@ -506,8 +506,9 @@ class NISTTRLStandardsWidget(QtWidgets.QWidget):
dialog.exec_()
def upload_calibration(self):
+ # TODO: enable specific parameters here, like which channel are we talking about?
with self.get_analyzer() as vna:
- vna.upload_twoport_calibration(self.calibration, "skrf_NIST_mTRL")
+ vna.upload_twoport_calibration(self.calibration, calname="skrf_NIST_mTRL")
@property
def get_analyzer(self):
@@ -644,8 +645,8 @@ class NISTTRLStandardsWidget(QtWidgets.QWidget):
self.btn_runCalibration.setEnabled(False)
self.btn_saveCalibration.setEnabled(True)
self.btn_viewCalibration.setEnabled(True)
- self.btn_runCalibration.setEnabled(True)
self.btn_viewCalibration.setText("View Cal")
+ self.btn_uploadCalibration.setEnabled(True)
self.calibration_updated.emit(cal)
calibration = property(get_calibration, set_calibration)
