From 5fdca0d5010427baa7817584784f9800f3616d98 Mon Sep 17 00:00:00 2001 From: vickimzhang Date: Fri, 27 Feb 2026 11:35:07 -0500 Subject: [PATCH] query from library for results --- .gitignore | 1 + pysyncrosim/scenario.py | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) 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):