Make sure weight window lower/upper bounds are flattened before writing to XML

This commit is contained in:
Paul Romano 2022-07-12 13:50:48 -05:00
parent a3bbd84692
commit 8e4ce676ff

View file

@ -291,10 +291,10 @@ class WeightWindows(IDManagerMixin):
subelement.text = ' '.join(str(e) for e in self.energy_bounds)
subelement = ET.SubElement(element, 'lower_ww_bounds')
subelement.text = ' '.join(str(b) for b in self.lower_ww_bounds)
subelement.text = ' '.join(str(b) for b in self.lower_ww_bounds.ravel())
subelement = ET.SubElement(element, 'upper_ww_bounds')
subelement.text = ' '.join(str(b) for b in self.upper_ww_bounds)
subelement.text = ' '.join(str(b) for b in self.upper_ww_bounds.ravel())
subelement = ET.SubElement(element, 'survival_ratio')
subelement.text = str(self.survival_ratio)