diff --git a/astrocut/footprint_cutouts.py b/astrocut/footprint_cutouts.py index 27d0e762..7facde0d 100644 --- a/astrocut/footprint_cutouts.py +++ b/astrocut/footprint_cutouts.py @@ -62,8 +62,8 @@ def _get_s3_ffis(s3_uri, as_table: bool = False, load_polys: bool = False): # Open footprint file with fsspec # Use caching to help performance, but check that remote UID matches the local # Expiry time is 1 week by default - with fsspec.open('filecache::' + s3_uri, s3={'anon': True}) as f: - #filecache={'cache_storage': 's3_cache', 'check_files': True}) as f: + with fsspec.open('filecache::' + s3_uri, s3={'anon': True}, + filecache={'cache_storage': 's3_cache', 'check_files': True}) as f: ffis = json.load(f) if load_polys: