From c2ed0ddc75ec10a3e6c7352ec60658d0194837b6 Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Fri, 14 Jun 2019 10:52:55 +0100 Subject: [PATCH] Fix the python part --- openmc/source.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openmc/source.py b/openmc/source.py index e0fd2b6c4..f8ea8ea93 100644 --- a/openmc/source.py +++ b/openmc/source.py @@ -60,7 +60,7 @@ class Source(object): if filename is not None: self.file = filename if library is not None: - self.source_library = library + self.library = library self.strength = strength self.particle = particle @@ -143,8 +143,8 @@ class Source(object): element.set("particle", self.particle) if self.file is not None: element.set("file", self.file) - if self.source_library is not None: - element.set("library", self.source_library) + if self.library is not None: + element.set("library", self.library) if self.space is not None: element.append(self.space.to_xml_element()) if self.angle is not None: @@ -184,7 +184,7 @@ class Source(object): library = get_text(elem, 'library') if library is not None: - source.source_library = library + source.library = library space = elem.find('space') if space is not None: