Skip to content

Commit 7da102b

Browse files
authored
Merge pull request #4779 from michieldemoor/add_date_to_keithley_calibration
Keithley calibration: adjust calibration date before saving new calibration
2 parents 5091f8f + eb333c4 commit 7da102b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Keithley calibration: adjust calibration date before saving new calibration

qcodes/calibrations/keithley.py

+2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ def setup_dmm(dmm: Instrument) -> None:
2323

2424

2525
def save_calibration(smu: Keithley_2600) -> None:
26+
calibration_date = int(time.time())
2627
for smu_channel in smu.channels:
28+
smu.write(f"{smu_channel.channel}.cal.adjustdate = {calibration_date}")
2729
smu.write(f"{smu_channel.channel}.cal.save()")
2830

2931

0 commit comments

Comments
 (0)