Merge pull request #2034 from paulromano/universe-plot-hotfix

Fix colors assignment in Universe.plot
This commit is contained in:
Patrick Shriwise 2022-04-19 10:08:43 -05:00 committed by GitHub
commit 6959303317
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -337,7 +337,8 @@ class Universe(UniverseBase):
plot.pixels = pixels
plot.basis = basis
plot.color_by = color_by
plot.colors = colors
if colors is not None:
plot.colors = colors
model.plots.append(plot)
# Run OpenMC in geometry plotting mode