Update openmc/deplete/r2s.py per @GuySten suggestion

Co-authored-by: GuySten <62616591+GuySten@users.noreply.github.com>
This commit is contained in:
Paul Romano 2026-07-15 12:26:16 -05:00 committed by GitHub
parent afe5a289ec
commit aa2447ccd1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -515,7 +515,7 @@ class R2SManager:
raise IndexError(
f'Photon time index {index} is out of range for '
f'{n_steps} depletion results')
normalized_index = index + n_steps if index < 0 else index
normalized_index = index % n_steps
normalized_indices.append(normalized_index)
# Remove duplicates while preserving order