mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
allow None-valued keff in stepresult.py
This commit is contained in:
parent
9d3573d890
commit
1d81b553de
1 changed files with 7 additions and 1 deletions
|
|
@ -495,7 +495,13 @@ class StepResult:
|
|||
for mat_i in range(n_mat):
|
||||
results[i, mat_i, :] = x[i][mat_i]
|
||||
|
||||
results.k = [(r.k.nominal_value, r.k.std_dev) for r in op_results]
|
||||
ks = []
|
||||
for r in op_results:
|
||||
if isinstance(r.k, type(None)):
|
||||
ks += [(None, None)]
|
||||
else:
|
||||
ks += [(r.k.nominal_value, r.k.std_dev)]
|
||||
results.k = ks
|
||||
results.rates = [r.rates for r in op_results]
|
||||
results.time = t
|
||||
results.source_rate = source_rate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue