Skip to content

Commit

Permalink
Squash and merge (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
simeonreusch authored May 22, 2023
1 parent eaf7dcb commit ca78513
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

- name: Enable auto-merge for Dependabot PRs
if: ${{contains(steps.metadata.outputs.update-type,'version-update:semver')}}
run: gh pr merge --auto --merge "$PR_URL"
run: gh pr merge --auto --merge --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 1 addition & 1 deletion nuztf/ampel_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def ampel_api_cone(
chunk_size: int = 500,
logger=None,
) -> list:
"""Function to query ampel via a cone search"""
"""Query ampel via a cone search"""

if logger is None:
logger = logging.getLogger(__name__)
Expand Down
28 changes: 18 additions & 10 deletions nuztf/paths.py
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)

0 comments on commit ca78513

Please sign in to comment.