Skip to content

Commit

Permalink
missed a )
Browse files Browse the repository at this point in the history
  • Loading branch information
ercius committed Mar 2, 2024
1 parent 3f75be5 commit 52cb95d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ncempy/io/smv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 52cb95d

Please sign in to comment.