Skip to content

Commit

Permalink
fix: switch to space seperated trigger setting
Browse files Browse the repository at this point in the history
  • Loading branch information
rroutsong committed Aug 12, 2024
1 parent a90bb4b commit 0c3ee73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion metamorph
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,6 @@ def parsed_arguments(name, description):


def main():

# Sanity check for usage
if len(sys.argv) == 1:
# Nothing was provided
Expand Down
6 changes: 2 additions & 4 deletions src/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function parser() {
-t | --tmp-dir) provided "$key" "${2:-}"; Arguments["t"]="$2"; shift; shift;;
-o | --outdir) provided "$key" "${2:-}"; Arguments["o"]="$2"; shift; shift;;
-c | --cache) provided "$key" "${2:-}"; Arguments["c"]="$2"; shift; shift;;
-r | --triggers) provided "$key" "${2:-}"; Arguments["r"]="$2"; shift; shift;;
-r | --triggers) provided "$key" "${2:-}"; Arguments["r"]="${2/,/' '}"; shift; shift;;
-* | --*) err "Error: Failed to parse unsupported argument: '${key}'."; usage && exit 1;;
*) err "Error: Failed to parse unrecognized argument: '${key}'. Do any of your inputs have spaces?"; usage && exit 1;;
esac
Expand Down Expand Up @@ -199,9 +199,7 @@ function submit(){
# --printshellcmds --keep-going --rerun-incomplete
# --keep-remote --restart-times 3 -j 500 --use-singularity
# --singularity-args -B {}.format({bindpaths}) --local-cores 24
triggers="${7:-'{code,params,software_env,input,mtime}'}"
if [[ ! ${triggers:0:1} == "{" ]] ; then triggers="{$triggers"; fi
if [[ ! ${triggers:0-1} == "}" ]] ; then triggers+='}'; fi
triggers="${7:-'code params software_env input mtime'}"
rerun="--rerun-triggers $triggers"

SLURM_DIR="$3/logfiles/slurmfiles"
Expand Down

0 comments on commit 0c3ee73

Please sign in to comment.