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

CDMS: fix MOLWT column starting position #3094

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kmaitreys
Copy link

Now the molecule tag 100501 and others work. Earlier they were crashing with

ValueError: invalid literal for int() with base 10: '13-'

Because that - is part of the signed TAG.

@bsipocz bsipocz changed the title fix MOLWT column starting position CDMS: fix MOLWT column starting position Sep 18, 2024
@bsipocz bsipocz added this to the v0.4.8 milestone Sep 18, 2024
@bsipocz bsipocz added the cdms label Sep 18, 2024
@bsipocz
Copy link
Member

bsipocz commented Sep 18, 2024

RTD failure is unrelated and will be fixes outside this PR.

@keflavich
Copy link
Contributor

We'll need some tests for this error. I can confirm that 100501 does not work right now:

CDMS.query_lines(10*u.GHz, 100*u.GHz, molecule='100501', parse_name_locally=False)

I tested one other case, and it worked both before & after:

CDMS.query_lines(10*u.GHz, 100*u.GHz, molecule='HCCCN', parse_name_locally=True)

so I'm going to approve this, but on my to-do list is to systematically test all molecules for failures like this.

@bsipocz
Copy link
Member

bsipocz commented Sep 19, 2024

In addition to putting it on the to-do, please do open an issue for it here, too.

@keflavich keflavich mentioned this pull request Sep 19, 2024
2 tasks
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.

3 participants