From 76ed5ec6c44b8c1d2c8c3cbe0980d05892150e25 Mon Sep 17 00:00:00 2001 From: Braden Date: Thu, 21 Mar 2024 15:41:44 -0600 Subject: [PATCH] Sorted all glob lists --- opencsp/app/scene_reconstruction/lib/SceneReconstruction.py | 1 + opencsp/app/sofast/test/test_integration_single_facet.py | 1 + 2 files changed, 2 insertions(+) diff --git a/opencsp/app/scene_reconstruction/lib/SceneReconstruction.py b/opencsp/app/scene_reconstruction/lib/SceneReconstruction.py index 7424b4671..6d38e41bc 100644 --- a/opencsp/app/scene_reconstruction/lib/SceneReconstruction.py +++ b/opencsp/app/scene_reconstruction/lib/SceneReconstruction.py @@ -56,6 +56,7 @@ def __init__( self.camera = camera self.known_point_locations = known_point_locations self.image_paths = glob(image_filter_path) + self.image_paths.sort() # Declare attributes self.images: list[ImageMarker] # Loaded image marker objects diff --git a/opencsp/app/sofast/test/test_integration_single_facet.py b/opencsp/app/sofast/test/test_integration_single_facet.py index 711e86f3a..3e9df6a54 100644 --- a/opencsp/app/sofast/test/test_integration_single_facet.py +++ b/opencsp/app/sofast/test/test_integration_single_facet.py @@ -38,6 +38,7 @@ def setUpClass(cls, base_dir: str | None = None): # Find all test files cls.files_dataset = glob.glob(os.path.join(base_dir, 'calculations_facet/data*.h5')) + cls.files_dataset.sort() if len(cls.files_dataset) == 0: raise ValueError('No single-facet datsets found.')