Skip to content

Commit

Permalink
Merge pull request #186 from ahoust17/main
Browse files Browse the repository at this point in the history
change for nion compatibility
  • Loading branch information
gduscher authored Dec 17, 2024
2 parents a6cde8b + 88c34df commit e764247
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pyTEMlib/file_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -990,10 +990,11 @@ def open_file(filename=None, h5_group=None, write_hdf_file=False, sum_frames=Fa

# Temporary Fix for dual eels spectra in dm files
# Todo: Fic in ScifyReaders
for dset in dataset_dict.values():
if 'single_exposure_time' in dset.metadata['experiment']:
dset.metadata['experiment']['exposure_time'] = dset.metadata['experiment']['number_of_frames'] * \
dset.metadata['experiment']['single_exposure_time']
for dset in dataset_dict.values():
if 'experiment' in dset.metadata:
if 'single_exposure_time' in dset.metadata['experiment']:
dset.metadata['experiment']['exposure_time'] = dset.metadata['experiment']['number_of_frames'] * \
dset.metadata['experiment']['single_exposure_time']
if write_hdf_file:
h5_master_group = save_dataset(dataset_dict, filename=filename)

Expand Down

0 comments on commit e764247

Please sign in to comment.