Skip to content

Commit e6414fc

Browse files
Sakib Rahmanclaude
andcommitted
Add debug output in determine_timing.sh and use RESULTS_BASE for logs
- Add debug echo statements to show DETECTOR_CONFIG, DETECTOR_VERSION, and RESULTS_BASE - Update logfile path to use RESULTS_BASE instead of hardcoded results/ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent cabc3a2 commit e6414fc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/determine_timing.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,17 @@ nlines=$((2*n_events_test*n_lines_per_event))
2929
dir=$(dirname EVGEN/${file}.${ext})
3030
mkdir -p ${dir}
3131

32-
logfile=results/logs/${file}.out
32+
logfile=${RESULTS_BASE:-results}/logs/${file}.out
3333
mkdir -p $(dirname ${logfile})
3434

3535
# Export detector configuration if provided
3636
export DETECTOR_CONFIG="${DETECTOR_CONFIG:-epic_craterlake}"
3737
export DETECTOR_VERSION="${DETECTOR_VERSION:-main}"
3838

39+
echo "DEBUG [determine_timing.sh] - DETECTOR_CONFIG = ${DETECTOR_CONFIG}"
40+
echo "DEBUG [determine_timing.sh] - DETECTOR_VERSION = ${DETECTOR_VERSION}"
41+
echo "DEBUG [determine_timing.sh] - RESULTS_BASE = ${RESULTS_BASE:-results}"
42+
3943
# time for 1 event (first)
4044
t1=$(date +%s.%N)
4145
/opt/campaigns/hepmc3/scripts/run.sh EVGEN/${file} ${ext} 1 2>&1 | tee ${logfile}.1

0 commit comments

Comments
 (0)