Commit 60afec81 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

fix HDF5 input

parent 87c22d1b
......@@ -16,7 +16,8 @@
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik
# and financially supported by the Studienstiftung des deutschen Volkes.
# from builtins import str
from builtins import str
import ast
import numpy as np
from d2o import distributed_data_object
......@@ -313,6 +314,6 @@ class PowerSpace(Space):
@classmethod
def _from_hdf5(cls, hdf5_group, repository):
hp = repository.get('harmonic_partner', hdf5_group)
exec("bb = " + hdf5_group.attrs['binbounds'])
bb = ast.literal_eval(hdf5_group.attrs['binbounds'])
ds = hdf5_group.attrs['distribution_strategy']
return PowerSpace(hp, ds, binbounds=bb)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment