-
Notifications
You must be signed in to change notification settings - Fork 22
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
IPAC spectra convert #328
IPAC spectra convert #328
Conversation
converted data are in issue #308 |
Script looks good but some of the filenames are still a little wonky. Eg, BRI and the question mark in 2M1207334. As we discussed, use the source from the database for the object name and use that (with the spaces removed) for the filename. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! One minor comment about using strip
instead of replace
.
'telescope': original_header_dict['TELESCOP']['value'], | ||
'instrument': insturment, | ||
'generated_filename':row['source'].replace(' ',''), | ||
'generated_filename':f"{row['source'].replace(' ','')}_{row['reference'].replace(' ','')} " #row['source'].replace(' ',''), #Add reference as a suffix from table |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'generated_filename':f"{row['source'].replace(' ','')}_{row['reference'].replace(' ','')} " #row['source'].replace(' ',''), #Add reference as a suffix from table | |
'generated_filename':f"{strip(row['source'])}_{strip(row['reference'])} " # Add reference as a suffix from table |
Please upload the converted files to Issue #308 and I'll upload them to AWS. |
No description provided.