Skip to content

Conversation

@kaseyLee123
Copy link
Contributor

@kaseyLee123 kaseyLee123 commented Feb 8, 2025

Short description: ingest sources in photometry from the BONES archive

Link to relevant issue: Closes #544 (sources only)

For data ingests:

  • includes script used for ingest
  • includes modified JSON files
  • Add new tests
  • Update the Versions table

@kelle
Copy link
Collaborator

kelle commented Feb 14, 2025

If you run the script with DB_Save = True, how many JSON files get modified?

@kelle
Copy link
Collaborator

kelle commented Feb 14, 2025

Tests aren't passing because of changes made to astrodb_utils. I'll work on that.

@kelle
Copy link
Collaborator

kelle commented Feb 14, 2025

I've run the script and saved the JSON files and we have two problems:

  1. its not recognizing the unicode minus sign as a minus sign and is adding it as an other name.
    { "other_name": "WISEA J000430.66-260402.3" }, { "other_name": "WISEA J000430.66\u2212260402.3" }
  2. Also, I noticed it confused LHS 292 with LHS 2924.

Both of these are tricky and I will think on them.

ingest_publication(
db,
bibcode = ads,
reference=adsRef
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
reference=adsRef

This is the line which is giving the inconsistent formatting for the references.

@kelle
Copy link
Collaborator

kelle commented Feb 14, 2025

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:

LHS 2090,135.0981088,21.83469481,sdM7,Lodieu et al. 2017,13.192,13.022,0.014,0.016,17.051,18.826,15.793,0.003,0.016,0.005,,,,,,,,,,,,,,,,,14.065,13.575,13.396,0.030,0.033,0.034,,,16.307,15.616,15.319,,,0.003,0.006,0.000,,,,,,,,,,,,
LP 426-61,137.2654234,19.69564333,sdT4.5,Burningham et al. 2010,18.059,17.096,0.130,0.182,,,,,,,,,,,,,19.950,18.464,,18.793,,0.145,0.064,,0.122,,,,,,,,,,21.483,21.060,20.250,,,0.047,0.109,0.174,,,,,,,,,,,,
ULAS J092605.47+083516.9,141.522819,8.588039,sdM8.5,Lodieu et al. 2017,16.859,16.866,0.047,0.144,20.892,21.238,19.597,0.015,0.178,0.073,,,,,,,18.156,17.645,,17.487,17.208,0.030,0.029,,0.075,0.077,,,,,,,,21.531,20.090,19.246,18.870,,0.040,0.014,0.026,0.029,,,,,,,,,,,,

and those three rows from the Bones Archive

LHS 2090	133.9529947	36.6004475	sdM7	Rojas-Ayala et al. 2012													
LP 426-61	135.0981088	21.8346948	sdM7	Lodieu et al. 2017	3088.000		-0.100	Marfil et al. 2021									
ULAS J092605.47+083516.9	137.2654234	19.6956433	sdT4.5	Burningham et al. 2010													

Please work on making a correct CSV file and re-running the updated script.

Copy link
Collaborator

@kelle kelle left a 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"
}
],
Copy link
Collaborator

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"
},
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

Comment on lines 19 to 21
{
"other_name": "2MASS J04524567-3608412"
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

wrong match. :(

Comment on lines 25 to 33
{
"other_name": "LHS 2090"
},
{
"other_name": "LP 368-128"
},
{
"other_name": "LP 426-61"
}
Copy link
Collaborator

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.

Comment on lines 26 to 30
"other_name": "SDSS J075054.74+445418.7"
},
{
"other_name": "ULAS J075335.23+200622.4"
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

wrong match.

Comment on lines 16 to 21
{
"other_name": "2MASS J03335076+0014062"
},
{
"other_name": "2MASS J03361338+0010129"
},
Copy link
Collaborator

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.

Comment on lines 16 to 21
{
"other_name": "SDSS J093244.46+011259.8"
},
{
"other_name": "ULAS J092605.47+083516.9"
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

wrong match.

Comment on lines 16 to 20
{
"other_name": "SDSS J101200.28+204611.6"
},
{
"other_name": "ULAS J095047.28+011734.3"
Copy link
Collaborator

Choose a reason for hiding this comment

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

wrong match.

Comment on lines 4 to 18
Copy link
Collaborator

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: "-".

@kelle
Copy link
Collaborator

kelle commented Apr 2, 2025

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

Copy link
Collaborator

@kelle kelle left a 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.

Comment on lines +7359 to +7363
"reference": "Burg24",
"bibcode": "",
"doi": "",
"description": ""
},
Copy link
Collaborator

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.

Comment on lines +29 to +31
no_sources = 0
inside_if = 0

Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
no_sources = 0
inside_if = 0

These variables are never used.

Comment on lines +107 to +113
if match is None:
match = find_source_in_db(
db,
bones_name,
ra=source["RA"],
dec=source["DEC"],
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
if match is None:
match = find_source_in_db(
db,
bones_name,
ra=source["RA"],
dec=source["DEC"],
)

This code is never called

@kelle kelle closed this Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ingest the BONES Archive of low metallicity sources

2 participants