From 827343c52b69e01263a782c0c4fca7227006f317 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Tue, 19 Apr 2022 06:51:02 -0500 Subject: [PATCH] Fix colors assignment in Universe.plot --- openmc/universe.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openmc/universe.py b/openmc/universe.py index 5b8c2bc8aa..f3f95aebbe 100644 --- a/openmc/universe.py +++ b/openmc/universe.py @@ -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