Skip to content

Commit

Permalink
Merge pull request #69 from slaclab/beamtime_testing_script
Browse files Browse the repository at this point in the history
TST: Add bash script to run beamtime scripts and remove un-used test files/data
  • Loading branch information
nstelter-slac authored Apr 15, 2024
2 parents 3e6f935 + fe2e202 commit 7842783
Show file tree
Hide file tree
Showing 40 changed files with 26 additions and 92 deletions.
7 changes: 3 additions & 4 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
#!/bin/bash
# Setup environment variables

echo "executing the following commands..."

# Get the current directory
current_dir=$(pwd)
# so scripts can find the calibrationSuite library code
export PYTHONPATH="$PYTHONPATH:$current_dir"
echo "export PYTHONPATH="\$PYTHONPATH:$current_dir""

# so output folders are written in a shared location
#export OUTPUT_ROOT="/sdf/data/lcls/ds/rix/rixx1003721/results/scripts/"
export OUTPUT_ROOT="/sdf/data/lcls/ds/rix/rixx1005922/scratch/"
echo "export OUTPUT_ROOT="\"$OUTPUT_ROOT\"

# point to which config file to use
#export SUITE_CONFIG="rixSuiteConfig.py"
export SUITE_CONFIG="epixMSuiteConfig.py"
echo "export SUITE_CONFIG="\"$SUITE_CONFIG\"
echo "export SUITE_CONFIG="\"$SUITE_CONFIG\"
Binary file removed tests/disabled/OffXavierV4_2.npy
Binary file not shown.
Binary file removed tests/disabled/XavierV4_2.npy
Binary file not shown.
55 changes: 0 additions & 55 deletions tests/disabled/disabled_test_AnalyzeH5.py

This file was deleted.

33 changes: 0 additions & 33 deletions tests/disabled/disabled_test_EventScanParallelSlice.py

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
23 changes: 23 additions & 0 deletions tests/test_scripts_beamtime.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

# print cmds executed
set -x

cd ..
source setup.sh
cd suite_scripts
export OUTPUT_ROOT=

# create directories if they don't exist
mkdir -p test_1
mkdir -p test_2
mkdir -p test_3

# replace the following with commands for upcoming beamtime
python CalcNoiseAndMean.py -r 583 -p ../test_1
python LinearityPlotsParallelSlice.py -r 591 -p ../test_2
python LinearityPlotsParallelSlice.py -r 591 -f ../test_2/LinearityPlotsParallel__c0_r591_n1.h5 --label fooBar -p ../test_2
python analyze_npy.py ../test_2/LinearityPlotsParallel_r591_sliceFits_fooBar_raw.npy
python TimeScanParallelSlice.py -r 498 -t 100 -p ../test_3
python TimeScanParallelSlice.py -r 498 --threshold 0 -p ../test_3
python MapCompEnOn.py -f ../test_3/TimeScanParallel__c0_r498_n1.h5

0 comments on commit 7842783

Please sign in to comment.