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

Proposal thumbnail search includes only proposal subdirectories #1054

Merged
merged 2 commits into from
Oct 25, 2022

Conversation

bhilbert4
Copy link
Collaborator

When creating proposal-level thumbnails, generate_proposal_thumbnails.py globs over the thumbnail system directory. However, it was searching for everything in this directory using a simple ''. This PR updates the search to look only for 'jw' entries, so that only the subdirectories containing the thumbnails are found. Logs from previous runs show that it was finding the text files in the same directory. This wasn't causing any real problem, since the next step is to search for files within each of the glob results, but it was leading to confusing log entries that seemed to indicate it was having trouble with the thumbnail list files.

@bhilbert4
Copy link
Collaborator Author

@mfixstsci simple tweak. Ready for review.

Copy link
Collaborator

@mfixstsci mfixstsci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @bhilbert4 this looks good, I am always weary of globs with . or * as the search criteria. Looks good to me.

@mfixstsci mfixstsci merged commit 5116583 into spacetelescope:develop Oct 25, 2022
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.

None yet

2 participants