Skip to content

JPLSpec is even more down#3547

Open
keflavich wants to merge 6 commits into
astropy:mainfrom
keflavich:jplspec_2026
Open

JPLSpec is even more down#3547
keflavich wants to merge 6 commits into
astropy:mainfrom
keflavich:jplspec_2026

Conversation

@keflavich

Copy link
Copy Markdown
Contributor

This is a harder workaround for jplspec being down: it switches to using the wayback machine instead of jpl's server, which has gone totally unresponsive.

This raises bigger questions about data preservation/curation. Can't answer those here, but here's a 🩹 .

@bsipocz bsipocz added this to the 0.4.12 milestone Mar 4, 2026
@bsipocz

bsipocz commented Mar 4, 2026

Copy link
Copy Markdown
Member

This needs a changelog. And maybe separating out into two PRs, one for the backup url (I expect that to get merged quickly); and the other for the new kwarg (if it needs more work)?

@keflavich

Copy link
Copy Markdown
Contributor Author

The backup doesn't do anything without the new kwarg, so these should go together. I will fix the failures tonight - this was an emergency patch with my student, since she needs access now.

@codecov

codecov Bot commented Apr 10, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 54.05405% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 73.14%. Comparing base (a1fee2a) to head (2a3cf51).
⚠️ Report is 69 commits behind head on main.

Files with missing lines Patch % Lines
astroquery/linelists/jplspec/core.py 52.77% 17 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3547      +/-   ##
==========================================
- Coverage   73.22%   73.14%   -0.09%     
==========================================
  Files         226      226              
  Lines       21000    21060      +60     
==========================================
+ Hits        15378    15405      +27     
- Misses       5622     5655      +33     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bsipocz bsipocz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

jplspec seems to be back right now, do you still want to go ahead with the wayback machine addition?

Comment thread astroquery/linelists/jplspec/core.py Outdated
by the query service. This workaround is needed while JPLSpec's query
tool is broken.

use_getmolecule is an option to force the query to use get_molecule.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

outside of scope here, but these methods should have proper docstrings

@keflavich

Copy link
Copy Markdown
Contributor Author

are you sure it's back? If you run a query, you probably get Zero lines were found for your search criteria. for all inputs

@bsipocz

bsipocz commented Apr 13, 2026

Copy link
Copy Markdown
Member

are you sure it's back? If you run a query, you probably get Zero lines were found for your search criteria. for all inputs

All tests pass locally on main, and https://spec.jpl.nasa.gov/ftp/pub/catalog also works? (Testing from home network and not from within caltech)

@keflavich

Copy link
Copy Markdown
Contributor Author

Huh, you're right. I'll dig a little more, maybe I can default the fallback to 'off'.

…w, may never come back. wayback machine URL added to config
@bsipocz

bsipocz commented Apr 30, 2026

Copy link
Copy Markdown
Member

@keflavich - can you look at the test failures?

@keflavich

Copy link
Copy Markdown
Contributor Author

Yep, I'll dig in - I clearly (re?)introduced a bug.

@keflavich

Copy link
Copy Markdown
Contributor Author

I just got an e-mail from the JPL folks saying they had fixed the server! I'll try to verify that later.

keflavich and others added 2 commits May 2, 2026 20:08
- Fix E131 hanging-indent in jplspec/__init__.py
- Drop unused EmptyResponseError import from test_jplspec_remote
- Add CHANGES.rst entry for astropy#3547

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

@bsipocz bsipocz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

overall looks good. There is one remote test failure though with the documentation, if you could also fix that up before merging that would be awesome.

Comment thread astroquery/linelists/jplspec/core.py

@bsipocz bsipocz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

OK, let's merge this. I have one minor comment and pushed a doctest fix, but it should all be good to go now.

Comment thread astroquery/linelists/jplspec/core.py Outdated
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.

2 participants