Skip to content

Commit 3a9f204

Browse files
committed
Metrics fixes
1 parent 4192721 commit 3a9f204

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/baselines/create_baselines.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ URLS=()
6262
for WORKFLOW_RUN in ${ALL_WF_RUNS[@]}; do
6363
for CFG in ${CONFIGS[@]}; do
6464
CFG=$TYPE-$WORKFLOW_RUN-$CFG
65-
if [[ $(find . -mindepth 1 -maxdepth 2 -type d -name $CFG | wc -l) -ne 1 ]]; then
66-
echo "Expected one artifact to have a '$CFG' dir under '$PWD', but found $(find . -mindepth 1 -maxdepth 2 -type d -name $CFG)"
65+
ARTS=$(find . -mindepth 1 -maxdepth 2 -type d -name $CFG)
66+
if (( $(echo ${ARTS} | wc -l) != 1 )); then
67+
echo "Expected one artifact to have a '$CFG' dir under '$PWD', but found ${ARTS}"
6768
exit 1
6869
fi
6970
done

.github/workflows/baselines/summarize_metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def main():
4040
if not os.path.exists(searchpath):
4141
searchpath = os.path.join(args.test_config, "summaries/train")
4242
if not os.path.exists(searchpath):
43-
searchpath = os.path.join(args.test_config, "logdir/tensorboard")
43+
searchpath = os.path.join(args.test_config, "logdir/tensorboard/logdir")
4444
assert os.path.exists(searchpath), f"Neither {args.test_config}/train nor {args.test_config}/summaries/train nor {args.test_config}/logdir/tensorboard dirs exist"
4545
event_files = glob.glob(os.path.join(searchpath, "events*"))
4646
assert len(event_files) > 0, f"{searchpath} did not contain a tensorboard events file"

0 commit comments

Comments
 (0)