Skip to content
Open
Changes from 2 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"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make it all caps - so that the style is the same throughout layup see

AU_KM = AU_M / 1000.0

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem will do.



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