diff --git a/SciFiReaders/readers/microscopy/em/tem/emd_reader.py b/SciFiReaders/readers/microscopy/em/tem/emd_reader.py index 381bcf2..669a662 100644 --- a/SciFiReaders/readers/microscopy/em/tem/emd_reader.py +++ b/SciFiReaders/readers/microscopy/em/tem/emd_reader.py @@ -219,6 +219,8 @@ def get_eds_spectrum(self): if 'ScanArea' in scan: 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) + size_y = int(size_y) elif 'RasterScanDefinition' in acquisition: size_x = int(acquisition['RasterScanDefinition']['Width']) size_y = int(acquisition['RasterScanDefinition']['Height'])