Skip to content

Commit

Permalink
fix cache_base_name
Browse files Browse the repository at this point in the history
  • Loading branch information
guynir42 committed Jul 6, 2024
1 parent 15a4e0c commit 6ab83af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/fixtures/datastore_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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...
Expand Down

0 comments on commit 6ab83af

Please sign in to comment.