diff --git a/.gitignore b/.gitignore index 0ed44a9..e16da37 100644 --- a/.gitignore +++ b/.gitignore @@ -133,6 +133,7 @@ dmypy.json *.ssim.input *.ssim.temp *.ssim.output +*.ssim.backup # VS code .vs/ diff --git a/pysyncrosim/scenario.py b/pysyncrosim/scenario.py index 6d7c5b1..d8862d7 100644 --- a/pysyncrosim/scenario.py +++ b/pysyncrosim/scenario.py @@ -766,12 +766,9 @@ def results(self, sid=None): else: raise ValueError(f'Scenario [{sid}] is not a Results Scenario') - elif self.__results is None: - s = self.project.scenarios(optional = True) - self.__results = s[(s.IsResult == "Yes") & (s.ParentId == self.__sid)] - return self.__results else: - return self.__results + s = self.project.scenarios(optional = True) + return s[(s.IsResult == "Yes") & (s.ParentId == self.__sid)] def __retrieve_scenario_folder_id(self):