Skip to content

Commit

Permalink
#156 Merge pull request from deshima-dev/astropenguin/issue153
Browse files Browse the repository at this point in the history
Fix overwrite option of demerge function
  • Loading branch information
astropenguin authored Jul 22, 2024
2 parents af8fb7d + e1d4760 commit 5893185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demerge/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def demerge(
)

# Run merge function
if (dems := dems_dir_ / f"dems_{obsid}.zarr.zip").exists():
if (dems := dems_dir_ / f"dems_{obsid}.zarr.zip").exists() and not overwrite:
raise FileExistsError(dems)

if not (corresp := data_dir_ / "kid_corresp.json").exists():
Expand Down

0 comments on commit 5893185

Please sign in to comment.