From 781b4b8a8e3717c89b26025fc9f5ae95f0f9f9d8 Mon Sep 17 00:00:00 2001 From: bbean Date: Sat, 6 Apr 2024 14:23:14 -0600 Subject: [PATCH] stop saving output test data to dir_input --- .../scene_reconstruction/test/test_SceneReconstruction.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/opencsp/app/scene_reconstruction/test/test_SceneReconstruction.py b/opencsp/app/scene_reconstruction/test/test_SceneReconstruction.py index df670580d..3d9cd10e4 100644 --- a/opencsp/app/scene_reconstruction/test/test_SceneReconstruction.py +++ b/opencsp/app/scene_reconstruction/test/test_SceneReconstruction.py @@ -50,6 +50,8 @@ def setUpClass(cls, dir_input: str = None, dir_output: str = None): base_dir = dirname(__file__) dir_input = join(base_dir, 'data', 'data_measurement') dir_output = join(base_dir, 'data', 'data_expected') + ft.create_directories_if_necessary(dir_input) + ft.create_directories_if_necessary(dir_output) # Load components camera = Camera.load_from_hdf(join(dir_input, 'camera.h5')) @@ -88,8 +90,7 @@ def test_calibrated_corner_locations(self): def test_save_csv(self): """Saves CSV file of points to data location""" - base_dir = dirname(__file__) - file = join(base_dir, 'data/data_expected/point_locations.csv') + file = join(self.dir_output, 'data/data_expected/point_locations.csv') self.scene_recon.save_data_as_csv(file)