Skip to content

Commit

Permalink
Update emd_reader.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gduscher committed Sep 10, 2023
1 parent e10cf4d commit d73f20a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SciFiReaders/readers/microscopy/em/tem/emd_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ def get_eds_spectrum(self):
size_y = 1
if 'Scan' in self.metadata:
scan = self.metadata['Scan']
size_x = float(scan['ScanSize']['width'])
size_y = float(scan['ScanSize']['height'])
if 'ScanArea' in scan:
size_x = float(scan['ScanSize']['width'])
size_y = float(scan['ScanSize']['height'])
size_x *= (float(scan['ScanArea']['right']) - float(scan['ScanArea']['left']))
size_y *= (float(scan['ScanArea']['bottom']) - float(scan['ScanArea']['top']))
size_x = int(size_x)
Expand Down

0 comments on commit d73f20a

Please sign in to comment.