From 34a3fe2519f59a33c819e340edf5c607cc3af824 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Mon, 25 Mar 2019 22:11:03 -0500 Subject: [PATCH] Fix Cell.from_xml_element when multiple temperatures are specified --- openmc/cell.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openmc/cell.py b/openmc/cell.py index 8503deffa1..8381fa8d86 100644 --- a/openmc/cell.py +++ b/openmc/cell.py @@ -571,7 +571,10 @@ class Cell(IDManagerMixin): # Check for other attributes t = get_text(elem, 'temperature') if t is not None: - c.temperature = float(t) + if ' ' in t: + c.temperature = [float(t_i) for t_i in t.split()] + else: + c.temperature = float(t) for key in ('temperature', 'rotation', 'translation'): value = get_text(elem, key) if value is not None: