From 1821f51b644049fc9dd7d0b891427fc3e3ae2352 Mon Sep 17 00:00:00 2001 From: SylviaWhittle Date: Thu, 5 Dec 2024 10:35:43 +0000 Subject: [PATCH] Fix: units pm and mm missing from spm_pixel_to_nm_scaling --- AFMReader/spm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AFMReader/spm.py b/AFMReader/spm.py index e5d554c..49cd2e8 100644 --- a/AFMReader/spm.py +++ b/AFMReader/spm.py @@ -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