Skip to content

Commit

Permalink
Correct failing test due to indexing of keysview object
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobachetti committed Feb 17, 2017
1 parent 739894a commit ceaac8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stingray/io.py
Expand Up @@ -436,7 +436,7 @@ def _retrieve_hdf5_object(filename):
attr_keys = hf.attrs.keys()
data = {}

dset_copy = dset_keys[:]
dset_copy = list(dset_keys)[:]
for key in dset_keys:

# Make sure key hasn't been removed
Expand All @@ -453,7 +453,7 @@ def _retrieve_hdf5_object(filename):
else:
data[key] = hf[key].value

attr_copy = attr_keys[:]
attr_copy = list(attr_keys)[:]
for key in attr_keys:

# Make sure key hasn't been removed
Expand Down

0 comments on commit ceaac8e

Please sign in to comment.