mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Fix issue with vector proc_time in reading depletion_summary
Previous changes made proc_time a vector, not an (N, 1) array. The reading of this data was not updated accordingly, until now
This commit is contained in:
parent
32cb3ddcf2
commit
2efc7e8b71
3 changed files with 3 additions and 3 deletions
|
|
@ -8,7 +8,7 @@ from sys import exit
|
|||
|
||||
from h5py import get_config
|
||||
|
||||
from unittest import Mock
|
||||
from unittest.mock import Mock
|
||||
|
||||
from .dummy_comm import DummyCommunicator
|
||||
|
||||
|
|
|
|||
|
|
@ -359,7 +359,7 @@ class Results(object):
|
|||
if "depletion time" in handle:
|
||||
proc_time_dset = handle["/depletion time"]
|
||||
if step < proc_time_dset.shape[0]:
|
||||
results.proc_time = proc_time_dset[step, :]
|
||||
results.proc_time = proc_time_dset[step]
|
||||
|
||||
if results.proc_time is None:
|
||||
results.proc_time = np.array([np.nan])
|
||||
|
|
|
|||
|
|
@ -116,5 +116,5 @@ class ResultsList(list):
|
|||
"""
|
||||
times = np.empty((len(self) - 1, 1))
|
||||
for ix, res in enumerate(self[:-1]):
|
||||
times[ix] = res.proc_time[0]
|
||||
times[ix] = res.proc_time
|
||||
return times
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue