Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/layup/utilities/data_processing_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@

logger = logging.getLogger(__name__)

# default Cache directory name where the layup auxiliary files are stored when layup bootstrap is ran
# eg on Mac ~/Library/Caches/layup
cache_dir_name = "layup"


def write_fallback_obscodes():
"""Decompress the observatory-codes file bundled with layup to a plain JSON
Expand Down Expand Up @@ -356,7 +360,7 @@ class LayupObservatory(SorchaObservatory):
A wrapper around Sorcha's Observatory class to provide additional functionality for Layup.
"""

def __init__(self, cache_dir=None):
def __init__(self, cache_dir=str(pooch.os_cache(cache_dir_name))):
"""Create an instance of the LayupObservatory class.

Parameters
Expand Down
Loading