Skip to content
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

Remove support for preview image and thumbnail listfiles #1667

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

bhilbert4
Copy link
Collaborator

Resolves #1029

Before launch, we implemented a set of text files that contained lists of preview images and thumbnails for each instrument. Originally these were designed to speed up calls to generate_preview_images, in that it could check the text file to see if a preview image already existed, and skip the creation of a new preview image if so.

But after launch, once the data volume increased enough, this method was no longer saving any time. So we removed the functionality that had the preview image generator open and read in the list files. However, we left in place the code that was adding names of new preview images to the list files at the end of each run of generate_preview_images.py. So the files continued to grow, but were not being used for anything. For NIRCam on production, the listfile is now over 400MB.

This PR removes all support for the listfiles. The files are no longer opened and have new entries added. This should speed up generate_preview_image.

@bhilbert4
Copy link
Collaborator Author

@mfixstsci this is ready for review

@bhilbert4 bhilbert4 requested a review from mfixstsci January 16, 2025 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove preview image and thumbnail inventory files
1 participant