Skip to content

Commit

Permalink
Merge pull request #84 from AFM-SPM/SylviaWhittle/hotfix-spm-units
Browse files Browse the repository at this point in the history
Fix: units pm and mm missing from spm_pixel_to_nm_scaling
  • Loading branch information
SylviaWhittle authored Dec 5, 2024
2 parents 192f577 + 1821f51 commit 7483dda
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions AFMReader/spm.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ def spm_pixel_to_nm_scaling(filename: str, channel_data: pySPM.SPM.SPM_image) ->
Pixel to nm scaling factor.
"""
unit_dict = {
"pm": 1e-3,
"nm": 1,
"um": 1e3,
"mm": 1e6,
}
px_to_real = channel_data.pxs()
# Has potential for non-square pixels but not yet implimented
Expand Down

0 comments on commit 7483dda

Please sign in to comment.