| 1 |
#! /bin/csh |
| 2 |
# |
| 3 |
#Just run the diagnostics on everything in a given directory |
| 4 |
#..................................................................... |
| 5 |
if ( "$1" == "" ) then |
| 6 |
echo -n "Enter dirname: " |
| 7 |
set dirname = $< |
| 8 |
else |
| 9 |
set dirname = $1 |
| 10 |
endif |
| 11 |
|
| 12 |
cd $dirname |
| 13 |
|
| 14 |
#......................................... |
| 15 |
# Hardcode the lists of tests for the moment. |
| 16 |
set tlist = "acs_etc_cases nicmos_etc_cases stis_etc_cases wfc3_ir_imaging_78_cases wfc3_ir_spec_61_cases wfc3_uvis1_imaging_61_cases wfc3_uvis1_spec_62_cases wfc3_uvis2_imaging_18_cases wfc3_uvis2_spec_18_cases" |
| 17 |
#......................................... |
| 18 |
echo $PYTHONPATH |
| 19 |
set codeplace = /data/gaudete1/dg1/laidler/ssb/checkout/pysynphot/test/commissioning |
| 20 |
setenv PATH {$PATH}:{$codeplace} |
| 21 |
foreach tname ($tlist) |
| 22 |
echo $tname |
| 23 |
casestats.csh $tname > $tname.stats |
| 24 |
set instr = `echo $tname | awk -F _ '{print $1}'` |
| 25 |
python $codeplace/doscalars.py $tname/testefflam efflam $instr |
| 26 |
python $codeplace/doscalars.py $tname/testcountrate countrate $instr |
| 27 |
end |