Commit f757325
authored
hdf5_loader.py - psize is expected to be scalar but it might be a tuple
From parameter tree docs:
scandata.PtyScan.psize(float, tuple)
Detector pixel size
Dimensions of the detector pixels (in meters)
default = 0.000172 (>0.0)
psize can be a tuple... perhaps for non-square pixels, I have never used it that way but some older datasets have x,y pixel size, e.g.,
psize=[0.000172, 0.000172]
which are accepted by Ptydscan. The proposed change just (silently) uses the first element of psize.1 parent cdf33cc commit f757325
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
588 | 588 | | |
589 | 589 | | |
590 | 590 | | |
591 | | - | |
| 591 | + | |
592 | 592 | | |
593 | 593 | | |
594 | 594 | | |
| |||
0 commit comments