Adding JWST query, has_jwst to data model, JWST Tab to html pages #316
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes # .
Description of the Change
Added jwstImages to mast_query.py. This queries mast for the availability of NIRCam and MIRI data in the same way HST queries work. Data and JPEG URLs are generated directly from the astropy table generated from the query.
Added has_jwst to YSE_Initial_Schema.sql, 0001_initial.py, transient_models.py, transient_serializers.py. This value is initialized in get_archival.py and added to the TransientDict object in TNS_uploads.py.
A JWST tab was added to transient_detail.html. The tab is populated by the values from the get_jwst_image function in view_utils.py, which is invoked in urls.py.
Documentation for the JWST tab was added to the description of HST and Chandra tabs in detail.rst.
Checklist
Please check all that apply to your proposed changes
Additional context
The goal for this change is to make the availability of JWST data part of the data model for transients and provide additional context for those data in the exact same way that has_hst and the HST tab work. The mast_query.py script has been tested and provides the jpegurldict object required by get_jwst_image in view_utils.py. As this script works in exactly the same way as HST queries, no package dependencies or data have been added to YSE-PZ.