From 887cfd2e78fe3bd29c614e7d03437bd1a7c49b16 Mon Sep 17 00:00:00 2001 From: Jonathan Shimwell Date: Wed, 19 Apr 2023 15:59:55 +0100 Subject: [PATCH] [skip ci] review improvment from Paul Co-authored-by: Paul Romano --- openmc/universe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/universe.py b/openmc/universe.py index fd0d6d44a4..4f36c3d85e 100644 --- a/openmc/universe.py +++ b/openmc/universe.py @@ -403,7 +403,7 @@ class Universe(UniverseBase): fig.set_size_inches(width, height) if outline: - + # Combine R, G, B values into a single int rgb = (img * 256).astype(int) image_value = (rgb[..., 0] << 16) + (rgb[..., 1] << 8) + (rgb[..., 2])