-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Karolina Wresilo
committed
Dec 15, 2023
1 parent
d35071f
commit 7c45546
Showing
3 changed files
with
45 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
# Runs proto_nd_flow on an example file. | ||
# Before using this script, use | ||
# >> source get_proto_nd_input.sh | ||
# to download all the necessary inputs into the correct directories | ||
# | ||
|
||
INPUT_FILE=$1 | ||
|
||
OUTPUT_DIR='/global/cfs/cdirs/dune/users/kwresilo/data/MiniRun4' | ||
OUTPUT_NAME=(${INPUT_FILE//"/"/ }) | ||
OUTPUT_NAME=${OUTPUT_NAME[-1]} | ||
OUTPUT_FILE="${OUTPUT_DIR}/${OUTPUT_NAME}" | ||
OUTPUT_FILE=${OUTPUT_FILE//.h5/.matched_taco.h5} | ||
echo ${OUTPUT_FILE} | ||
|
||
# for running on a login node | ||
H5FLOW_CMD='h5flow' | ||
# for running on a single compute node with 32 cores | ||
#H5FLOW_CMD='srun -n32 h5flow' | ||
|
||
# run all stages | ||
WORKFLOW1='yamls/proto_nd_flow/workflows/charge/charge_light_assoc.yaml' | ||
HERE=`pwd` | ||
#cd ndlar_flow | ||
# assumes this is being run from ndlar_flow/scripts/proto_nd_flow: | ||
cd ../../ | ||
|
||
# avoid being asked if we want to overwrite the file if it exists. | ||
# this is us answering "yes". | ||
if [ -e $OUTPUT_FILE ]; then | ||
rm $OUTPUT_FILE | ||
fi | ||
|
||
$H5FLOW_CMD -c $WORKFLOW1 -i $INPUT_FILE -o $OUTPUT_FILE | ||
|
||
echo "Done!" | ||
echo "Output can be found at $OUTPUT_FILE" | ||
|
||
cd ${HERE} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,4 @@ params: | |
|
||
# configuration parameters | ||
unix_ts_window: 1 | ||
ts_window: 1000 | ||
ts_window: 1000000 |