-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eaf7dcb
commit ca78513
Showing
3 changed files
with
20 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,30 @@ | ||
import os | ||
from pathlib import Path | ||
|
||
CONFIG_DIR = Path(__file__).parent.joinpath("config") | ||
|
||
NUZTF_OUTPUT_DIR = Path.home().joinpath("Data/nuztf/") | ||
NUZTF_OUTPUT_DIR_STR = os.environ.get("NUZTF_DIR") | ||
|
||
SKYMAP_DIR = NUZTF_OUTPUT_DIR.joinpath(f"skymaps") | ||
SKYMAP_DIR.mkdir(exist_ok=True, parents=True) | ||
RESULTS_DIR = NUZTF_OUTPUT_DIR.joinpath("results") | ||
if NUZTF_OUTPUT_DIR_STR is None: | ||
NUZTF_OUTPUT_DIR = Path.home() / "Data" / "nuztf" | ||
else: | ||
NUZTF_OUTPUT_DIR = Path(NUZTF_OUTPUT_DIR_STR) | ||
|
||
CACHE_DIR = NUZTF_OUTPUT_DIR.joinpath(f"cache") | ||
SKYMAP_DIR = NUZTF_OUTPUT_DIR / "skymaps" | ||
SKYMAP_DIR.mkdir(exist_ok=True, parents=True) | ||
|
||
BASE_CANDIDATE_DIR = CACHE_DIR.joinpath("candidates") | ||
RESULTS_DIR = NUZTF_OUTPUT_DIR / "results" | ||
CACHE_DIR = NUZTF_OUTPUT_DIR / "cache" | ||
BASE_CANDIDATE_DIR = CACHE_DIR / "candidates" | ||
|
||
CROSSMATCH_CACHE = CACHE_DIR.joinpath("crossmatch") | ||
CROSSMATCH_CACHE = CACHE_DIR / "crossmatch" | ||
CROSSMATCH_CACHE.mkdir(exist_ok=True, parents=True) | ||
CUTOUT_CACHE_DIR = CACHE_DIR.joinpath("cutouts") | ||
|
||
CUTOUT_CACHE_DIR = CACHE_DIR / "cutouts" | ||
CUTOUT_CACHE_DIR.mkdir(exist_ok=True, parents=True) | ||
FLATPIX_CACHE_DIR = CACHE_DIR.joinpath("flatpix") | ||
|
||
FLATPIX_CACHE_DIR = CACHE_DIR / "flatpix" | ||
FLATPIX_CACHE_DIR.mkdir(exist_ok=True, parents=True) | ||
PREPROCESSED_CACHE_DIR = CACHE_DIR.joinpath("preprocessed") | ||
|
||
PREPROCESSED_CACHE_DIR = CACHE_DIR / "preprocessed" | ||
PREPROCESSED_CACHE_DIR.mkdir(exist_ok=True, parents=True) |