Skip to content

Commit

Permalink
#143 Add constant for default outdir
Browse files Browse the repository at this point in the history
  • Loading branch information
astropenguin committed Dec 5, 2023
1 parent ee7bc5d commit ef1429f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions decode/qlook.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
DEFAULT_FORMAT = "png"
DEFAULT_FREQUENCY_UNITS = "GHz"
DEFAULT_INCL_MKID_IDS = None
DEFAULT_OUTDIR = Path()
DEFAULT_OVERWRITE = False
DEFAULT_SKYCOORD_GRID = "6 arcsec"
DEFAULT_SKYCOORD_UNITS = "arcsec"
Expand All @@ -44,7 +45,7 @@ def pswsc(
data_type: Literal["df/f", "brightness", None] = DEFAULT_DATA_TYPE,
frequency_units: str = DEFAULT_FREQUENCY_UNITS,
format: str = DEFAULT_FORMAT,
outdir: Path = Path(),
outdir: Path = DEFAULT_OUTDIR,
overwrite: bool = DEFAULT_OVERWRITE,
) -> Path:
"""Quick-look at a PSW observation with sky chopper.
Expand Down Expand Up @@ -115,7 +116,7 @@ def raster(
skycoord_grid: str = DEFAULT_SKYCOORD_GRID,
skycoord_units: str = DEFAULT_SKYCOORD_UNITS,
format: str = DEFAULT_FORMAT,
outdir: Path = Path(),
outdir: Path = DEFAULT_OUTDIR,
overwrite: bool = DEFAULT_OVERWRITE,
) -> Path:
"""Quick-look at a raster scan observation.
Expand Down Expand Up @@ -222,7 +223,7 @@ def skydip(
chan_weight: Literal["uniform", "std", "std/tx"] = "std/tx",
pwv: Literal["0.5", "1.0", "2.0", "3.0", "4.0", "5.0"] = "5.0",
format: str = DEFAULT_FORMAT,
outdir: Path = Path(),
outdir: Path = DEFAULT_OUTDIR,
overwrite: bool = DEFAULT_OVERWRITE,
) -> Path:
"""Quick-look at a skydip observation.
Expand Down Expand Up @@ -296,7 +297,7 @@ def still(
chan_weight: Literal["uniform", "std", "std/tx"] = "std/tx",
pwv: Literal["0.5", "1.0", "2.0", "3.0", "4.0", "5.0"] = "5.0",
format: str = DEFAULT_FORMAT,
outdir: Path = Path(),
outdir: Path = DEFAULT_OUTDIR,
overwrite: bool = DEFAULT_OVERWRITE,
) -> Path:
"""Quick-look at a still observation.
Expand Down Expand Up @@ -369,7 +370,7 @@ def zscan(
chan_weight: Literal["uniform", "std", "std/tx"] = "std/tx",
pwv: Literal["0.5", "1.0", "2.0", "3.0", "4.0", "5.0"] = "5.0",
format: str = DEFAULT_FORMAT,
outdir: Path = Path(),
outdir: Path = DEFAULT_OUTDIR,
overwrite: bool = DEFAULT_OVERWRITE,
) -> Path:
"""Quick-look at an observation of subref axial focus scan.
Expand Down

0 comments on commit ef1429f

Please sign in to comment.