From 041106ebea29ee291db6de047300d949bdfa329d Mon Sep 17 00:00:00 2001 From: Joe Knapper Date: Thu, 17 Apr 2025 08:48:14 +0000 Subject: [PATCH] Only open pickle file if planner was successfully generated --- tests/utilities/scan_test_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/utilities/scan_test_helpers.py b/tests/utilities/scan_test_helpers.py index 06bce2a6..a14f1405 100644 --- a/tests/utilities/scan_test_helpers.py +++ b/tests/utilities/scan_test_helpers.py @@ -175,8 +175,8 @@ def update_example_smart_spiral_pickle(sample_name: str): pickle for each sample type """ pkl_fname = os.path.join(THIS_DIR, f"example_smart_spiral_{sample_name}.pkl") + _, planner = example_smart_spiral(sample_name) with open(pkl_fname, "wb") as pkl_file_obj: - _, planner = example_smart_spiral(sample_name) pickle.dump(planner, pkl_file_obj, pickle.HIGHEST_PROTOCOL)