From 52cb95dc91930943d7d2651663fcd27c59988059 Mon Sep 17 00:00:00 2001 From: Peter Ercius Date: Sat, 2 Mar 2024 14:13:44 -0800 Subject: [PATCH] missed a ) --- ncempy/io/smv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ncempy/io/smv.py b/ncempy/io/smv.py index 00a8f18..8768531 100644 --- a/ncempy/io/smv.py +++ b/ncempy/io/smv.py @@ -281,7 +281,7 @@ def smvReader(file_name, verbose=False): im1 = f1.getDataset() # read in the dataset # Calculate the pixel size in inverse angstroms according to the geometry in the header - alpha = (f1.heaer_info['BIN'] * f1.header_info['PIXEL_SIZE'] / f1.header_info['DISTANCE'] # angle across 1 pixel + alpha = (f1.heaer_info['BIN'] * f1.header_info['PIXEL_SIZE']) / f1.header_info['DISTANCE'] # angle across 1 pixel dp_pixel_distance = alpha / f1.header_info['WAVELENGTH'] * 1e-10 # divide by wavelength to get distance in Angstroms pixelSize = (dp_pixel_distance, dp_pixel_distance) extra_metadata = {'pixelSize': pixelSize, 'pixelUnit':'A', 'filename': f1.file_name,