mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Fix openmc-track-to-vtk and track test
This commit is contained in:
parent
44949016b5
commit
3e7bca49a8
2 changed files with 8 additions and 14 deletions
|
|
@ -42,8 +42,8 @@ def main():
|
|||
for fname in args.input:
|
||||
# Write coordinate values to points array.
|
||||
track = h5py.File(fname)
|
||||
n_particles = track['n_particles'].value
|
||||
n_coords = track['n_coords']
|
||||
n_particles = track.attrs['n_particles']
|
||||
n_coords = track.attrs['n_coords']
|
||||
coords = []
|
||||
for i in range(n_particles):
|
||||
coords.append(track['coordinates_' + str(i + 1)].value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue