Remove PSU control from spectrometer.py — machine handles it

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-04 15:05:59 +07:00
parent 85da7f09dc
commit 739f828dea

View File

@@ -3,7 +3,6 @@
import argparse
import json
import sys
import time
from hpcs6500 import HPCS6500, find_hpcs_port
@@ -17,11 +16,8 @@ def measure():
dev = HPCS6500(port)
try:
dev.identify()
dev.psu_on()
time.sleep(0.5)
reading = dev.take_reading(psu=False)
finally:
dev.psu_off()
dev.close()
if reading is None: