From 6ab83af6ef7a8b670b8f2b1524aed648e0921cf2 Mon Sep 17 00:00:00 2001 From: Guy Nir Date: Sat, 6 Jul 2024 09:35:23 +0300 Subject: [PATCH] fix cache_base_name --- tests/fixtures/datastore_factory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fixtures/datastore_factory.py b/tests/fixtures/datastore_factory.py index fef12f45..60f241ec 100644 --- a/tests/fixtures/datastore_factory.py +++ b/tests/fixtures/datastore_factory.py @@ -168,7 +168,7 @@ def make_datastore( if image_cache_path is not None and output_path != image_cache_path: warnings.warn(f'cache path {image_cache_path} does not match output path {output_path}') else: - cache_base_name = output_path[:-10] # remove the '.image.fits' part + cache_base_name = output_path[:-16] # remove the '.image.fits.json' part ds.cache_base_name = output_path SCLogger.debug(f'Saving image to cache at: {output_path}') use_cache = True # the two other conditions are true to even get to this part...