Skip to content

Commit f8965aa

Browse files
committed
Changed "layup" to be a global variable and a short comment to explain it
1 parent 9049027 commit f8965aa

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/layup/utilities/data_processing_utilities.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@
5959

6060
logger = logging.getLogger(__name__)
6161

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

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

359-
def __init__(self, cache_dir=str(pooch.os_cache("layup"))):
363+
def __init__(self, cache_dir=str(pooch.os_cache(cache_dir_name))):
360364
"""Create an instance of the LayupObservatory class.
361365
362366
Parameters

0 commit comments

Comments
 (0)