Skip to content

Commit

Permalink
Update HLP regtest to use existing L1/L2 files (#1171)
Browse files Browse the repository at this point in the history
  • Loading branch information
schlafly authored Apr 9, 2024
2 parents 5d346b5 + 902c5f8 commit 8be3868
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions romancal/regtest/test_hlp_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ def test_level3_hlp_pipeline(rtdata, ignore_asdf_paths):
"""Tests for level 3 processing requirements DMS356"""

cal_files = [
"WFI/image/r0000101001001001001_01101_0001_WFI01_cal.asdf",
"WFI/image/r0000101001001001001_01101_0002_WFI01_cal.asdf",
"WFI/image/r0000101001001001001_01101_0003_WFI01_cal.asdf",
"WFI/image/r0000101001001001001_01101_0004_WFI01_cal.asdf",
"WFI/image/r0000101001001001001_01101_0005_WFI01_cal.asdf",
]

for cal_file in cal_files:
Expand Down
6 changes: 6 additions & 0 deletions romancal/scripts/make_regtestdata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ do
cp ${fn}_darkcurrent.asdf $outdir/roman-pipeline/dev/WFI/$dirname/
cp ${fn}_rampfit.asdf $outdir/roman-pipeline/dev/truth/WFI/$dirname/
done
cp r0000101001001001001_01101_0003_WFI01_cal.asdf $outdir/roman-pipeline/dev/WFI/image/


# second imaging exposure
Expand Down Expand Up @@ -157,3 +158,8 @@ strun roman_elp r0000101001001001001_01101_0004_WFI01_uncal.asdf
strun roman_elp r0000201001001001001_01101_0004_WFI01_uncal.asdf
cp r0000101001001001001_01101_0004_WFI01_uncal.asdf $outdir/roman-pipeline/dev/WFI/image/
cp r0000201001001001001_01101_0004_WFI01_uncal.asdf $outdir/roman-pipeline/dev/WFI/grism/

asn_from_list r0000101001001001001_01101_0001_WFI01_cal.asdf r0000101001001001001_01101_0002_WFI01_cal.asdf r0000101001001001001_01101_0003_WFI01_cal.asdf -o L3_regtest_asn.json --product-name r0099101001001001001_F158_visit_0.900.0.50_178199.5_-0.5.
strun --disable-crds-steppars roman_hlp L3_regtest_asn.json
cp L3_regtest_asn.json $outdir/roman-pipeline/dev/WFI/image/
cp r0099101001001001001_F158_visit_0.900.0.50_178199.5_-0.5_i2d.asdf $outdir/roman-pipeline/dev/truth/WFI/image/

0 comments on commit 8be3868

Please sign in to comment.