Skip to content

Conversation

@cmkewish
Copy link

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.

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.
@cmkewish cmkewish closed this Nov 27, 2025
Copy link
Author

@cmkewish cmkewish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@cmkewish cmkewish deleted the patch-1 branch November 27, 2025 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant