dladder: print the hv_current trace, like pthresh

The trace is the per-rung witness: the laser-off G0 between rungs reads
0, so the runs of nonzero current count the rungs that struck and their
level tracks each rung's dose. Without it a run reports only a range,
and which rungs fired has to be read off the material alone.
This commit is contained in:
ScottW514
2026-08-17 20:55:39 -04:00
parent 4eb0932099
commit b7091effb7
+15
View File
@@ -670,6 +670,21 @@ def drill_dladder(g):
max(emis) if emis else '-')) max(emis) if emis else '-'))
print('hv_current range: %s..%s' % (min(hv_vals) if hv_vals else '-', print('hv_current range: %s..%s' % (min(hv_vals) if hv_vals else '-',
max(hv_vals) if hv_vals else '-')) max(hv_vals) if hv_vals else '-'))
if samples:
t0 = samples[0]['t']
print('hv_current trace (t s : raw) - the laser-off G0 between rungs')
print('reads 0, so the runs of nonzero current count the rungs that')
print('struck, and their level tracks the dose of each:')
line = []
for smp in samples:
if smp['hv'] is None:
continue
line.append('%5.1f:%s' % (smp['t'] - t0, smp['hv']))
if len(line) == 8:
print(' ' + ' '.join(line))
line = []
if line:
print(' ' + ' '.join(line))
print('Check the controller said "laser armed (density)" - a plain') print('Check the controller said "laser armed (density)" - a plain')
print('"laser armed" means the analog path ran and this is a duty') print('"laser armed" means the analog path ran and this is a duty')
print('ladder, not a density one.') print('ladder, not a density one.')