Closed stscijgbot closed 4 years ago
Comment by Shannon Osborne: Full traceback:
2019-10-22 13:27:05,213 - stpipe.Image3Pipeline - INFO - Image3Pipeline instance created. 2019-10-22 13:27:05,220 - stpipe.Image3Pipeline.tweakreg - INFO - TweakRegStep instance created. 2019-10-22 13:27:05,225 - stpipe.Image3Pipeline.skymatch - INFO - SkyMatchStep instance created. 2019-10-22 13:27:05,230 - stpipe.Image3Pipeline.outlier_detection - INFO - OutlierDetectionStep instance created. 2019-10-22 13:27:05,235 - stpipe.Image3Pipeline.resample - INFO - ResampleStep instance created. 2019-10-22 13:27:05,239 - stpipe.Image3Pipeline.source_catalog - INFO - SourceCatalogStep instance created. 2019-10-22 13:27:05,363 - stpipe.Image3Pipeline - INFO - Step Image3Pipeline running with args ('/grp/jwst/wit/fgs/pipeline/build7.3_testing/files/im3_image_cal_asn.json',). 2019-10-22 13:27:06,495 - stpipe.Image3Pipeline - INFO - Prefetching reference files for dataset: 'jw00729011001_02101_00001_guider2_cal.fits' reftypes = ['drizpars'] 2019-10-22 13:27:06,498 - stpipe.Image3Pipeline - INFO - Prefetch for DRIZPARS reference file is 'N/A'. 2019-10-22 13:27:06,498 - stpipe.Image3Pipeline - INFO - Prefetching reference files for dataset: 'jw00729011001_02102_00002_guider2_cal.fits' reftypes = ['drizpars'] 2019-10-22 13:27:06,501 - stpipe.Image3Pipeline - INFO - Prefetch for DRIZPARS reference file is 'N/A'. 2019-10-22 13:27:06,501 - stpipe.Image3Pipeline - INFO - Starting calwebb_image3 ... 2019-10-22 13:27:07,157 - stpipe.Image3Pipeline - INFO - Aligning input images... 2019-10-22 13:27:07,229 - stpipe.Image3Pipeline - WARNING - /user/sosborne/miniconda3/envs/jwstdev73/lib/python3.6/site-packages/jwst-0.13.7-py3.6.egg/jwst/stpipe/step.py:350: ResourceWarning: unclosed file <_io.FileIO name='/user/sosborne/fgs_pipeline_testing/build_7.3/files/jw00729011001_02101_00001_guider2_cal.fits' mode='rb' closefd=True> gc.collect()
2019-10-22 13:27:07,229 - stpipe.Image3Pipeline - WARNING - /user/sosborne/miniconda3/envs/jwstdev73/lib/python3.6/site-packages/jwst-0.13.7-py3.6.egg/jwst/stpipe/step.py:350: ResourceWarning: unclosed file <_io.FileIO name='/user/sosborne/fgs_pipeline_testing/build_7.3/files/jw00729011001_02102_00002_guider2_cal.fits' mode='rb' closefd=True> gc.collect()
2019-10-22 13:27:07,232 - stpipe.Image3Pipeline.tweakreg - INFO - Step tweakreg running with args (
AttributeError Traceback (most recent call last)
Comment by Stacy (Anastasia) Smith: Previously contained component: "validation_testing".
Comment by Alicia Canipe: [~bushouse] other related tickets are closed... do you know if this issue has been resolved too?
Comment by Jonathan Eisenhamer: This should be resolved by the same PR that resolved JP-1283.
Comment by Alicia Canipe: I believe this should be fixed based on the status of the other tickets and Jonathan's comment. Will move this to "Ready for Testing".
Comment by Alicia Canipe: Just confirming that this is now resolved. [~sosborne] FYI {code:java} 2020-11-11 13:00:17,535 - stpipe.Image3Pipeline.outlier_detection - INFO - Writing out MEDIAN image to: jw01069002001_01101_00001_nrca5_a3001_median.fits 2020-11-11 13:00:17,712 - stpipe.Image3Pipeline.outlier_detection - INFO - Blotting median... 2020-11-11 13:00:19,527 - stpipe.Image3Pipeline.outlier_detection - INFO - Blotting (2048, 2048) <-- (3219, 3066) 2020-11-11 13:00:22,144 - stpipe.Image3Pipeline.outlier_detection - INFO - Blotting (2048, 2048) <-- (3219, 3066) 2020-11-11 13:00:24,712 - stpipe.Image3Pipeline.outlier_detection - INFO - Blotting (2048, 2048) <-- (3219, 3066) 2020-11-11 13:00:27,265 - stpipe.Image3Pipeline.outlier_detection - INFO - Blotting (2048, 2048) <-- (3219, 3066) 2020-11-11 13:00:29,767 - stpipe.Image3Pipeline.outlier_detection - INFO - Blotting (2048, 2048) <-- (3219, 3066) 2020-11-11 13:00:32,331 - stpipe.Image3Pipeline.outlier_detection - INFO - Blotting (2048, 2048) <-- (3219, 3066) 2020-11-11 13:00:34,899 - stpipe.Image3Pipeline.outlier_detection - INFO - Blotting (2048, 2048) <-- (3219, 3066) 2020-11-11 13:00:37,444 - stpipe.Image3Pipeline.outlier_detection - INFO - Blotting (2048, 2048) <-- (3219, 3066) 2020-11-11 13:00:37,840 - stpipe.Image3Pipeline.outlier_detection - INFO - Writing out BLOT images... 2020-11-11 13:00:44,741 - stpipe.Image3Pipeline.outlier_detection - INFO - Step outlier_detection done {code} and the files are there: {code:java} -rw-r--r-- 1 acanipe staff 118480320 Nov 11 13:00 jw01069002001_01101_00001_a3001_outlier_i2d.fits -rw-r--r-- 1 acanipe staff 118480320 Nov 11 13:00 jw01069002001_01101_00002_a3001_outlier_i2d.fits -rw-r--r-- 1 acanipe staff 118480320 Nov 11 13:00 jw01069002002_01101_00005_a3001_outlier_i2d.fits -rw-r--r-- 1 acanipe staff 118480320 Nov 11 13:00 jw01069002002_01101_00006_a3001_outlier_i2d.fits -rw-r--r-- 1 acanipe staff 118480320 Nov 11 13:00 jw01069002003_01101_00009_a3001_outlier_i2d.fits -rw-r--r-- 1 acanipe staff 118480320 Nov 11 13:00 jw01069002003_01101_00010_a3001_outlier_i2d.fits -rw-r--r-- 1 acanipe staff 118480320 Nov 11 13:00 jw01069002004_01101_00013_a3001_outlier_i2d.fits -rw-r--r-- 1 acanipe staff 118480320 Nov 11 13:00 jw01069002004_01101_00014_a3001_outlier_i2d.fits -rw-r--r-- 1 acanipe staff 39516480 Nov 11 13:00 jw01069002001_01101_00001_nrca5_a3001_median.fits -rw-r--r-- 1 acanipe staff 117547200 Nov 11 13:00 level3_F277W_asn_jw01069002001_01101_00001_nrca5_blot.fits_a3001_blot.fits -rw-r--r-- 1 acanipe staff 117552960 Nov 11 13:00 level3_F277W_asn_jw01069002001_01101_00002_nrca5_blot.fits_a3001_blot.fits -rw-r--r-- 1 acanipe staff 117552960 Nov 11 13:00 level3_F277W_asn_jw01069002002_01101_00005_nrca5_blot.fits_a3001_blot.fits -rw-r--r-- 1 acanipe staff 117552960 Nov 11 13:00 level3_F277W_asn_jw01069002002_01101_00006_nrca5_blot.fits_a3001_blot.fits -rw-r--r-- 1 acanipe staff 117552960 Nov 11 13:00 level3_F277W_asn_jw01069002003_01101_00009_nrca5_blot.fits_a3001_blot.fits -rw-r--r-- 1 acanipe staff 117552960 Nov 11 13:00 level3_F277W_asn_jw01069002003_01101_00010_nrca5_blot.fits_a3001_blot.fits -rw-r--r-- 1 acanipe staff 117552960 Nov 11 13:00 level3_F277W_asn_jw01069002004_01101_00013_nrca5_blot.fits_a3001_blot.fits -rw-r--r-- 1 acanipe staff 117552960 Nov 11 13:00 level3_F277W_asn_jw01069002004_01101_00014_nrca5_blot.fits_a3001_blot.fits {code}
Comment by Alicia Canipe: Confirmed that this has been resolved, closing the ticket.
Issue JP-1078 was created by Shannon Osborne:
For an input ASN file, setting save_intermediate_results to True for the outlier detection step of the Image3Pipeline causes it to fail with the error "AttributeError: 'OutlierDetection' object has no attribute 'save_model' ". The same does not happen for _cal.fits inputs.
Example code:
{color:#cc7832}from {color}jwst.pipeline {color:#cc7832}import {color}Image3Pipeline
cal_file = {color:#6a8759}"/grp/jwst/wit/fgs/pipeline/build7.3_testing/files/im3_image_cal_asn.json" {color}
pipe = Image3Pipeline()
pipe.outlier_detection.save_intermediate_results = {color:#cc7832}True{color}
out = pipe.run(cal_file)