updated photon data test to check cross sections and data by from_hdf5()

This commit is contained in:
liangjg 2019-03-27 12:37:02 -04:00 committed by Jingang Liang
parent ea71b9e377
commit 0f248381d1
4 changed files with 21 additions and 7 deletions

View file

@ -349,8 +349,8 @@ class Tabulated1D(Function1D):
raise ValueError("Expected an HDF5 attribute 'type' equal to '"
+ cls.__name__ + "'")
x = dataset.value[0, :]
y = dataset.value[1, :]
x = dataset[0, :]
y = dataset[1, :]
breakpoints = dataset.attrs['breakpoints']
interpolation = dataset.attrs['interpolation']
return cls(x, y, breakpoints, interpolation)