File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -669,10 +669,9 @@ def data_from_fileobj(self, frame=0):
669
669
header = self ._header
670
670
subhdr = self .subheaders [frame ]
671
671
raw_data = self .raw_data_from_fileobj (frame )
672
- return raw_data
673
- #data = raw_data * header['ecat_calibration_factor']
674
- #data = data * subhdr['scale_factor']
675
- #return data
672
+ data = raw_data * header ['ecat_calibration_factor' ]
673
+ data = data * subhdr ['scale_factor' ]
674
+ return data
676
675
677
676
678
677
@@ -934,7 +933,7 @@ def to_file_map(self, file_map=None):
934
933
imgf .seek (pos + 2 )
935
934
936
935
#Get frame and its data type
937
- image = self .get_frame (index )
936
+ image = self ._subheader . raw_data_from_fileobj (index )
938
937
dtype = image .dtype
939
938
940
939
#Write frame images
You can’t perform that action at this time.
0 commit comments