spacetelescope / jwql

The James Webb Space Telescope Quicklook Application
BSD 3-Clause "New" or "Revised" License
64 stars 44 forks source link

Add keyword to specify program IDs for preview image creation #1602

Closed bhilbert4 closed 2 months ago

bhilbert4 commented 4 months ago

Add an optional "programs" keyword to generate_preview_images.py. This allows the user to specify a list of program ID numbers (e.g. 1068, 01220) to the call to generate_preview_images.py. If this keyword is given, the script will create preview images only for the specified programs. If no program keyword is given the script will create preview images for all programs, as it did previously.

With this new keyword, we can split up the creation of new preview images into multiple calls (on multiple machines), and speed up the creation of new preview images. Or, if we find we need to update the preview images for only a few, specific programs, this will allow us to do that.

bhilbert4 commented 4 months ago

This was inspired by #1592 where is seems like eventually we'll want to replace all preview images.

bhilbert4 commented 4 months ago

@mfixstsci this is also ready for review. Local testing showed no problems.