[skip ci] suggestion from review by @Paulromano

Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
Jonathan Shimwell 2022-03-04 14:07:16 +00:00 committed by GitHub
parent 130b3a2dc6
commit 093886a4eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,7 +84,8 @@ class ResultsList(list):
cv.check_value("nuc_units", nuc_units,
{"atoms", "atom/b-cm", "atom/cm3"})
mat_id = str(mat.id)
if isinstance(mat, openmc.Material):
mat = mat.id
times = np.empty_like(self, dtype=float)
concentrations = np.empty_like(self, dtype=float)