-
Notifications
You must be signed in to change notification settings - Fork 24
Ingest bones sources #577
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
Ingest bones sources #577
Conversation
script is now running but just change logic so if source does not exist then ingest
Kelle's changes
…IMPLE-db into ingestBonesSources
|
If you run the script with |
|
Tests aren't passing because of changes made to |
|
I've run the script and saved the JSON files and we have two problems:
Both of these are tricky and I will think on them. |
| ingest_publication( | ||
| db, | ||
| bibcode = ads, | ||
| reference=adsRef |
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.
| reference=adsRef |
This is the line which is giving the inconsistent formatting for the references.
|
Ok, I fixed the minus sign problem and got around the LHS 292/2924 confusion but I found a new and BIG bug. The CSV file we're reading from got messed up somehow. The discovery references are linked to the wrong sources. Here are three rows from the CSV file y'all made: and those three rows from the Bones Archive Please work on making a correct CSV file and re-running the updated script. |
kelle
left a comment
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.
Seems like some investigation needs to go into the find_source_in_db function.
| { | ||
| "other_name": "WISEA J071121.36-573634.2" | ||
| } | ||
| ], |
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.
Uh oh. This doesn't look like the code found the right source here.
| { | ||
| "other_name": "LP 258-28" | ||
| }, | ||
| { |
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.
Wrong match. LP 258-28 is LHS 2023. https://simbad.u-strasbg.fr/simbad/sim-id?Ident=LP++258-28&NbIdent=1&Radius=2&Radius.unit=arcmin&submit=submit+id
data/source/lehpm_2-59.json
Outdated
| { | ||
| "other_name": "2MASS J04524567-3608412" | ||
| }, |
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.
wrong match. :(
| { | ||
| "other_name": "LHS 2090" | ||
| }, | ||
| { | ||
| "other_name": "LP 368-128" | ||
| }, | ||
| { | ||
| "other_name": "LP 426-61" | ||
| } |
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.
should only have one LP name so something is off.
| "other_name": "SDSS J075054.74+445418.7" | ||
| }, | ||
| { | ||
| "other_name": "ULAS J075335.23+200622.4" | ||
| } |
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.
wrong match.
| { | ||
| "other_name": "2MASS J03335076+0014062" | ||
| }, | ||
| { | ||
| "other_name": "2MASS J03361338+0010129" | ||
| }, |
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.
maybe wrong match? The numbers usually agree really well and these are just a bit more off than usual.
| { | ||
| "other_name": "SDSS J093244.46+011259.8" | ||
| }, | ||
| { | ||
| "other_name": "ULAS J092605.47+083516.9" | ||
| }, |
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.
wrong match.
| { | ||
| "other_name": "SDSS J101200.28+204611.6" | ||
| }, | ||
| { | ||
| "other_name": "ULAS J095047.28+011734.3" |
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.
wrong match.
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.
There shouldn't be \u2212. Those should be replaced with hyphens: "-".
b3997c3 to
540cc77
Compare
|
Hunter has fixed a bug in the sheet - please re-download the CSV file: https://docs.google.com/spreadsheets/d/1b9SUUshady_efTJaWEXiy4g-1n-JOzG_Mcy6j1CFE8k/edit?gid=65788592#gid=65788592 |
kelle
left a comment
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.
This looks great! Amazing progress!
I only see two problems
- Burg24 publication has no data
- I don't see the UNCOVER-bd-1 source.
When I run the script, a new uncover-bd-1.json file is made and the Burg24 publication has data in it so I'm not sure what's going on.
| "reference": "Burg24", | ||
| "bibcode": "", | ||
| "doi": "", | ||
| "description": "" | ||
| }, |
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.
Hmmm, this should have some things filled in.
| no_sources = 0 | ||
| inside_if = 0 | ||
|
|
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.
| no_sources = 0 | |
| inside_if = 0 |
These variables are never used.
| if match is None: | ||
| match = find_source_in_db( | ||
| db, | ||
| bones_name, | ||
| ra=source["RA"], | ||
| dec=source["DEC"], | ||
| ) |
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.
| if match is None: | |
| match = find_source_in_db( | |
| db, | |
| bones_name, | |
| ra=source["RA"], | |
| dec=source["DEC"], | |
| ) |
This code is never called
Short description: ingest sources in photometry from the BONES archive
Link to relevant issue: Closes #544 (sources only)
For data ingests: