Skip to content

Commit 1821f51

Browse files
committed
Fix: units pm and mm missing from spm_pixel_to_nm_scaling
1 parent 192f577 commit 1821f51

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

AFMReader/spm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ def spm_pixel_to_nm_scaling(filename: str, channel_data: pySPM.SPM.SPM_image) ->
2828
Pixel to nm scaling factor.
2929
"""
3030
unit_dict = {
31+
"pm": 1e-3,
3132
"nm": 1,
3233
"um": 1e3,
34+
"mm": 1e6,
3335
}
3436
px_to_real = channel_data.pxs()
3537
# Has potential for non-square pixels but not yet implimented

0 commit comments

Comments
 (0)