From affc62f09cdb66bd2fea9ffdf6b44099b1e0afde Mon Sep 17 00:00:00 2001 From: josh Date: Wed, 4 Jan 2023 22:53:55 +0000 Subject: [PATCH] only reassign temps when not None --- openmc/cell.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openmc/cell.py b/openmc/cell.py index 8169ca4d2..cea362ed8 100644 --- a/openmc/cell.py +++ b/openmc/cell.py @@ -520,8 +520,9 @@ class Cell(IDManagerMixin): clone = openmc.Cell() clone.name = self.name - clone.temperature = self.temperature clone.volume = self.volume + if self.temperature is not None: + clone.temperature = self.temperature if self.translation is not None: clone.translation = self.translation if self.rotation is not None: