Skip to content

Commit 7483dda

Browse files
Merge pull request #84 from AFM-SPM/SylviaWhittle/hotfix-spm-units
Fix: units pm and mm missing from spm_pixel_to_nm_scaling
2 parents 192f577 + 1821f51 commit 7483dda

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)