Skip to content

Commit

Permalink
Require SEG_PATH if SKIP_WS and SKIP_AGG are both true
Browse files Browse the repository at this point in the history
  • Loading branch information
ranlu committed Mar 24, 2024
1 parent 2d5fa86 commit a2e2d57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dags/sanitycheck_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def check_cv_data():
slack_message("""*Use semantic labels in* `{}`""".format(param["SEM_PATH"]))

if param.get("SKIP_AGG", False):
if not all((param.get("SKIP_DOWNSAMPLE", False), param.get("SKIP_MESHING", False), param.get("SKIP_SKELETON", False))):
if param.get("SKIP_WS", False) or not (param.get("SKIP_DOWNSAMPLE", False) and param.get("SKIP_MESHING", False) and param.get("SKIP_SKELETON", False)):
if "SEG_PATH" not in param:
slack_message(":u7981:*ERROR: Must specify path for a existing segmentation when SKIP_AGG is used*")
raise ValueError('Must specify path for a existing segmentation when SKIP_AGG is used')
Expand Down

0 comments on commit a2e2d57

Please sign in to comment.