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

Update cdms table #2760

Merged
merged 1 commit into from
Jul 5, 2023
Merged

Update cdms table #2760

merged 1 commit into from
Jul 5, 2023

Conversation

keflavich
Copy link
Contributor

The CDMS catalog directory table has been updated. This PR updates our cached file & implements a tool for future updating & makes it possible to use the live, remote version. The only reason this didn't exist previously was my own laziness; the formatting was weird b/c of html stuff mixed in with the table and I had just hand hacked it to fit. Turns out it's pretty easy to read the table with ascii.read, just took some figuring.

@codecov
Copy link

codecov bot commented Jun 28, 2023

Codecov Report

Merging #2760 (a40638f) into main (91f2b0b) will decrease coverage by 0.02%.
The diff coverage is 61.53%.

❗ Current head a40638f differs from pull request most recent head 21a81bb. Consider uploading reports for the commit 21a81bb to get more accurate results

@@            Coverage Diff             @@
##             main    #2760      +/-   ##
==========================================
- Coverage   66.11%   66.10%   -0.02%     
==========================================
  Files         234      234              
  Lines       18048    18057       +9     
==========================================
+ Hits        11933    11937       +4     
- Misses       6115     6120       +5     
Impacted Files Coverage Δ
astroquery/linelists/cdms/core.py 91.66% <58.33%> (-3.50%) ⬇️
astroquery/linelists/cdms/__init__.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@keflavich keflavich added the cdms label Jun 29, 2023
@keflavich
Copy link
Contributor Author

@bsipocz this is ready for review. lmk if you think more tests are needed

@bsipocz
Copy link
Member

bsipocz commented Jun 29, 2023

The docs build issue is a genuine one.

Copy link
Member

@bsipocz bsipocz left a comment

Choose a reason for hiding this comment

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

This needs a changelog, and the docs build and tests fixed.

Maybe some test coverage would be nice, too as the new functionality is not tested anywhere. If you think its unnecessarily big download, then we can package up a much smaller test file in data and use its github url.

astroquery/linelists/cdms/core.py Outdated Show resolved Hide resolved
astroquery/linelists/cdms/core.py Outdated Show resolved Hide resolved
astroquery/linelists/cdms/core.py Outdated Show resolved Hide resolved
astroquery/linelists/cdms/core.py Outdated Show resolved Hide resolved
@@ -1,1089 +1,1198 @@
TAG | NAME | NLINE | lg(Q(1000)) | lg(Q(500)) | lg(Q(300)) | lg(Q(225)) | lg(Q(150)) | lg(Q(75)) | lg(Q(37.5)) | lg(Q(18.75)) | lg(Q(9.375)) | lg(Q(5.000)) | lg(Q(2.725))
Copy link
Member

Choose a reason for hiding this comment

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

There has been a lot of back and forth with this file, please squash those changes out into one commit touching the datafile.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

can we just squash at the end?

docs/linelists/cdms/cdms.rst Outdated Show resolved Hide resolved
@bsipocz bsipocz added this to the v0.4.7 milestone Jun 29, 2023
@keflavich
Copy link
Contributor Author

Only remaining red is code coverage.

@bsipocz
Copy link
Member

bsipocz commented Jul 5, 2023

Only remaining red is code coverage.

Ok, could you add a changelog, and squash the datafile modifications?

@bsipocz bsipocz merged commit a99ad27 into astropy:main Jul 5, 2023
@bsipocz
Copy link
Member

bsipocz commented Jul 5, 2023

Thanks @keflavich!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants