Skip to content

Conversation

@Will-Cooper
Copy link
Member

@Will-Cooper Will-Cooper commented Jun 3, 2025

Tackling a few issues on the tracker.
Updating bokeh (and corresponding static js)
Making requirements.txt a specific pin to exactly match what is on reclaim host.
Fixes #181 (commit typo, instead of #186 which doesn't exist yet); uses session instead of curdoc, so will work on multithreaded servers and doesn't have a weird inconsistent overlap with bokeh.
Solved the join.. on... sql queries which were making lists with duplicate column names; breaking the url generation.
#170 is indeed reproduced in the simplest case of doing a full text search providing a spectra table with a bulk spectra download option added (as with the solo result page)
Fixed #177 with the CAMD resetting behaviour to be more expected.

@Will-Cooper Will-Cooper linked an issue Jun 4, 2025 that may be closed by this pull request
@Will-Cooper Will-Cooper marked this pull request as ready for review June 4, 2025 10:53
@Will-Cooper Will-Cooper requested review from dr-rodriguez and kelle June 4, 2025 10:53
@Will-Cooper Will-Cooper self-assigned this Jun 4, 2025
@Will-Cooper Will-Cooper added bug Something isn't working enhancement New feature or request labels Jun 4, 2025
@Will-Cooper Will-Cooper linked an issue Jun 4, 2025 that may be closed by this pull request
@kelle
Copy link
Contributor

kelle commented Jul 28, 2025

I launched a codespace to test this out and unfortunately got 404 errors on solo object results pages.

@Will-Cooper
Copy link
Member Author

I launched a codespace to test this out and unfortunately got 404 errors on solo object results pages.

Just needed merging, this is because the SIMPLE-db upstream change had broken the website which was fixed by #188, all of which happened after this PR.

@Will-Cooper Will-Cooper mentioned this pull request Jul 29, 2025
@kelle
Copy link
Contributor

kelle commented Jul 29, 2025

Testing out the bulk spectra download function (#170) I see that the filenames are changed. E.g.,
spex-prism_2MASSJ10073369-4555147_20061209_LOO07A.txt
gets downloaded as
spectra_292_spex-prism_2MASSJ16150413%2B1340079_20060902_LOO07A.txt
Can you say why this spectra_##_ prefix is necessary?

@kelle
Copy link
Contributor

kelle commented Jul 29, 2025

@Will-Cooper
Copy link
Member Author

Testing out the bulk spectra download function (#170) I see that the filenames are changed. E.g., spex-prism_2MASSJ10073369-4555147_20061209_LOO07A.txt gets downloaded as spectra_292_spex-prism_2MASSJ16150413%2B1340079_20060902_LOO07A.txt Can you say why this spectra_##_ prefix is necessary?

This is mostly to guarantee zero duplicates (e.g. same file name), which would break the code as it enters a python dictionary before being zipped, which as unique keys.

@Will-Cooper
Copy link
Member Author

it's an awkward one: prove that an intermittent fault no longer occurs; I tested triggering the write spectra function a tonne of times and it had stopped randomly breaking.

@kelle
Copy link
Contributor

kelle commented Jul 29, 2025

I also see some files being saved as spectra_284_viewcontent. The one I checked is actually a fits file.

@kelle
Copy link
Contributor

kelle commented Jul 31, 2025

Opened a new issue about filenames (#193). I think this PR can be merged.

@Will-Cooper Will-Cooper merged commit 83f60d9 into SIMPLE-AstroDB:main Jul 31, 2025
1 check passed
@Will-Cooper Will-Cooper deleted the updates branch July 31, 2025 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Write Spectra Fault Bokeh CAMD Reset Behaviour Reproduce SpeX Prism Library bulk downloads

2 participants