8000 JP-1448: Only load science/bkg members in calimage3 by hbushouse · Pull Request #4937 · spacetelescope/jwst · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

JP-1448: Only load science/bkg members in calimage3 #4937

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ datamodels

- Relax asdf requirement and use validator flag when asdf 2.6.x is installed [#4905]

pipeline
--------

- Updated calwebb_image3 pipeline to only load science and background member
types from an input ASN. [#4937]

source_catalog
--------------

Expand Down
7 changes: 4 additions & 3 deletions jwst/pipeline/calwebb_image3.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,11 @@ def process(self, input):

self.log.info('Starting calwebb_image3 ...')

input_models = datamodels.open(input)
# Only load science and background members from input ASN
asn_exptypes = ['science', 'background']
input_models = datamodels.open(input, asn_exptypes=asn_exptypes)

# If input is an association, set the output to the product
# name.
# If input is an association, set the output to the product name.
try:
self.output_file = input_models.meta.asn_table.products[0].name
except AttributeError:
Expand Down
0