Skip to content

Commit

Permalink
fix: SeriesHdf5Qpimage did not correctly load meta data time
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Apr 30, 2019
1 parent 364e29d commit 73ea7fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
0.10.1
- fix: SeriesHdf5Qpimage did not correctly load meta data "time"
0.10.0
- feat: allow to specify a time interval or a series slice in
SeriesData.saveh5
Expand Down
1 change: 1 addition & 0 deletions qpformat/file_formats/series_hdf5_qpimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def _init_meta(self):
attrs = dict(h5["qpi_0"].attrs)
for key in qpimage.meta.DATA_KEYS:
if (key not in self.meta_data
and key not in ["time"] # do not override time
and key in attrs):
self.meta_data[key] = attrs[key]

Expand Down

0 comments on commit 73ea7fa

Please sign in to comment.