mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
updated photon data test to check cross sections and data by from_hdf5()
This commit is contained in:
parent
ea71b9e377
commit
0f248381d1
4 changed files with 21 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue