From 074bac4ee7928e1e0b630d50bb345a8a636c460b Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Thu, 3 Sep 2026 07:20:10 -0500 Subject: [PATCH] Avoid setting shape on numpy directly --- openmc_plotter/plotmodel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc_plotter/plotmodel.py b/openmc_plotter/plotmodel.py index 11e2e19..d102793 100644 --- a/openmc_plotter/plotmodel.py +++ b/openmc_plotter/plotmodel.py @@ -224,7 +224,7 @@ def makePlot(self): domain[_NOT_FOUND] = DomainView(_NOT_FOUND, "Not Found", cv.domainBackground) u, inv = np.unique(self.ids, return_inverse=True) image = np.array([domain[id].color for id in u])[inv] - image.shape = (cv.v_res, cv.h_res, 3) + image = image.reshape(cv.v_res, cv.h_res, 3) if cv.masking: for id, dom in domain.items():