Commit 19963884 authored by Dion Haefner's avatar Dion Haefner

fixes #31

parent c1ed2d7c
......@@ -27,7 +27,7 @@ class FFTH5Converter(BaseConverter):
"""
# read HDF5 file
with h5py.File(h5_path, 'r') as f:
y_data = np.exp(np.array(f.get("/YField"), dtype=np.float64))
y_data = np.array(f.get("/YField"), dtype=np.float64)
parField = {"raw_field": y_data}
......@@ -37,7 +37,7 @@ class FFTH5Converter(BaseConverter):
parField[pn] = np.ones_like(y_data) * p[pn]
else:
media_array = np.zeros_like(y_data, dtype=int)
media_array[y_data > 1] = 1
media_array[y_data > 0] = 1
p = [self.create_parclass(i).parameters() for i in (1,2)]
for pn in self.ParClass.names:
......
Markdown is supported
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