Skip to content

Commit 0fba573

Browse files
committed
doc: cleanup
1 parent 1829b07 commit 0fba573

5 files changed

Lines changed: 18 additions & 216 deletions

File tree

bin/deploy-timelines.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

bin/thyme

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ usage() {
1313
Run clas12-timeline commands.
1414
1515
COMMAND: the command to run, one of:
16-
histogram Run the timeline histogramming jobs
17-
analysis Analyze the histograms and generate timelines
18-
deploy Deploy the timelines to the web server
19-
error Scan for errors in Slurm logs
16+
histogram Run the timeline histogramming jobs (Step 1)
17+
analysis Analyze the histograms and generate timelines (Step 2)
18+
error Scan for errors in Slurm logs (for Step 1)
2019
2120
OPTIONS: Each command has its own set of options; run a command with no
2221
additional options to see usage for that command.
@@ -37,7 +36,6 @@ shift
3736
case $cmd in
3837
hi*) exec $TIMELINESRC/bin/thyme-histogram "$@" ;;
3938
an*) exec $TIMELINESRC/bin/thyme-analysis "$@" ;;
40-
de*) exec $TIMELINESRC/bin/thyme-deploy "$@" ;;
4139
er*) exec $TIMELINESRC/bin/thyme-error "$@" ;;
4240
-v|--version)
4341
echo $(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec -f $TIMELINESRC/pom.xml || echo "UNKNOWN")

bin/thyme-analysis

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ done
2727

2828
# usage
2929
sep="================================================================"
30-
usage() {
30+
usageTerse() {
3131
echo """
3232
$sep
3333
USAGE: thyme analysis [OPTIONS]...
3434
$sep
35-
Analyzes histograms and produces timeline HIPO files
35+
Analyzes histograms and produces timelines.
3636
3737
CHEF OPTIONS: most of these are required for chef's production
3838
@@ -59,8 +59,10 @@ $(find $TIMELINESRC/data/metadata -name "*.json" -exec basename {} .json \; | se
5959
-n [NOTE] additional note that will be shown on the clas12mon webpage
6060
(i.e., the README file); surround your note in quotes
6161
- default: ''
62-
63-
ADDITIONAL OPTIONS:
62+
""">&2
63+
}
64+
usageVerbose() {
65+
echo """ ADDITIONAL OPTIONS:
6466
6567
-o [OUTPUT_DIR] output directory for the analyzed timelines
6668
default = ./outfiles/[DATASET_NAME]
@@ -90,7 +92,8 @@ $(find $TIMELINESRC/data/metadata -name "*.json" -exec basename {} .json \; | se
9092
""" >&2
9193
}
9294
if [ $# -eq 0 ]; then
93-
usage
95+
usageTerse
96+
echo " For more options, run with '--help'" >&2
9497
exit 101
9598
fi
9699

@@ -123,7 +126,8 @@ while getopts "d:i:p:f:n:o:j:t:m:h-:" opt; do
123126
esac
124127
done
125128
if ${modes['help']}; then
126-
usage
129+
usageTerse
130+
usageVerbose
127131
exit 101
128132
fi
129133

bin/thyme-deploy

Lines changed: 0 additions & 191 deletions
This file was deleted.

bin/thyme-histogram

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ outputDir=""
2626
sep="================================================================"
2727
usageTerse() {
2828
echo """
29-
Run the timeline histogramming jobs
29+
Run the timeline histogramming jobs.
30+
NOTE: This is not for chefs; instead, use the chef's workflow.
31+
3032
$sep
3133
USAGE: thyme histogram -d [DATASET_NAME] [RUN_DIRECTORY]
3234
$sep
@@ -40,14 +42,13 @@ usageTerse() {
4042
one is for detector QA timelines and the other is for physics QA timelines.
4143
Output files will appear in ./outfiles/[DATASET_NAME]
4244
43-
For more options, run:
44-
$0 --help
45+
For more options, run with '--help'
4546
""" >&2
4647
}
4748
usageVerbose() {
4849
echo """
4950
$sep
50-
USAGE: $0 [OPTIONS]... [RUN_DIRECTORY]...
51+
USAGE: thyme histogram [OPTIONS]... [RUN_DIRECTORY]...
5152
$sep
5253
5354
REQUIRED ARGUMENTS:

0 commit comments

Comments
 (0)