From d385d3854ed4ef8ee72942ab89f327c447be332d Mon Sep 17 00:00:00 2001 From: sbradnam Date: Wed, 14 Dec 2022 16:31:24 +0000 Subject: [PATCH] Fixed _get_importances bug --- csg2csg/MCNPInput.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csg2csg/MCNPInput.py b/csg2csg/MCNPInput.py index 142923f..1b0b5ae 100644 --- a/csg2csg/MCNPInput.py +++ b/csg2csg/MCNPInput.py @@ -98,7 +98,7 @@ def __get_importances(self, start_line): return self.__process_importances() # check for importance keyword - if "imp" in self.file_lines[idx]: + if self.file_lines[idx].startswith('imp'): particle = self.file_lines[idx].split()[0].split(":")[1] # TODO mcnp allows the following forms imp:n imp:n,p etc