Skip to content

Conversation

@lesliech1004
Copy link
Contributor

@lesliech1004 lesliech1004 commented Jun 23, 2025

Ingest Emily Calamari's samples of UCDs with higher mass primaries. Sources, publications, companion relationships.

Link to relevant issue: Closes #633
Closes #636

For data ingests:

  • includes script used for ingest

  • includes modified JSON files

  • Add new tests

  • Update the Versions table

@lesliech1004 lesliech1004 requested a review from kelle July 2, 2025 15:30
@kelle
Copy link
Collaborator

kelle commented Jul 2, 2025

Looks super great! I need to sit down and give it a more careful review but script and JSONs look excellent.

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.

Some small comments, one big one: primary stars do not need to be ingested.

"description": "SCExAO/CHARIS Direct Imaging Discovery of a 20 au Separation, Low-mass Ratio Brown Dwarf Companion to an Accelerating Sun-like Star"
},
{
"reference": "Gaia21",
Copy link
Collaborator

Choose a reason for hiding this comment

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

already ingested as GaiaEDR3

{
"Sources": [
{
"source": "* 47 Oph",
Copy link
Collaborator

Choose a reason for hiding this comment

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

try ingesting source without "*"

{
"Sources": [
{
"source": "* eta CrB AB",
Copy link
Collaborator

Choose a reason for hiding this comment

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

try ingesting source without "*"

Copy link
Collaborator

Choose a reason for hiding this comment

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

Pretty sure this file should be deleted.

Comment on lines 402 to 410
logger.info(f"references ingested:{ref_ingested}") # 10 references ingested
logger.info(f"references already exists:{ref_already_exists}") # 24 references due to preexisting data
logger.info(f"total references:{ref_ingested+ref_already_exists}") # 34 references total
logger.info(f"sources ingested:{sources_ingested}") # 42 ingested
logger.info(f"sources already exists:{sources_already_exists}") # 74 due to preexisting data
logger.info(f"total sources:{sources_ingested+sources_already_exists}") # 116 sources total
logger.info(f"companion relationships ingested:{companions_ingested}") # 101 ingested
logger.info(f"companion relationships already exists:{companions_already_exists}") # 15 due to preexisting data
logger.info(f"total companion relationships:{companions_ingested+companions_already_exists}") # 116 total
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do all of these make sense given the needed changes to the tests?

Copy link
Collaborator

Choose a reason for hiding this comment

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

We don't need this source ingested, just it's child.

"other_name": "2MASS J06135342+1514062"
},
{
"other_name": "HD 253662"
Copy link
Collaborator

Choose a reason for hiding this comment

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

This in the parent, not another name for the source.

Copy link
Collaborator

Choose a reason for hiding this comment

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

please move the scripts related to ingesting publications to their own script. We also want to think about how to best add ingesting from a URL capability to ingest_publication.

@lesliech1004
Copy link
Contributor Author

When ingesting the primaries as the unresolved parent, it returns an error saying that the source doesn't exist. This is because I removed the ingest code for the primaries. Should I just not ingest these unresolved parents or should I write the code to ingest the primaries? I predict this issue will also pop up when ingesting the primaries as parents of the objects. Should I not ingest these relationships?

@kelle
Copy link
Collaborator

kelle commented Jul 9, 2025

When ingesting the primaries as the unresolved parent, it returns an error saying that the source doesn't exist. This is because I removed the ingest code for the primaries. Should I just not ingest these unresolved parents or should I write the code to ingest the primaries? I predict this issue will also pop up when ingesting the primaries as parents of the objects. Should I not ingest these relationships?

I think all of the unresolved parents need to also be ingested as sources. This does not mean ingest all primaries, just the ones that are unresolved parents. Might be easiest to do this "by hand" or source-by-source.

Also, I noticed that the "ingest_companion_relationships" function (simple/utils/companions.py) will need some modification to allow the new "unresolved child" relationship.

@lesliech1004
Copy link
Contributor Author

When ingesting the primaries as the unresolved parent, it returns an error saying that the source doesn't exist. This is because I removed the ingest code for the primaries. Should I just not ingest these unresolved parents or should I write the code to ingest the primaries? I predict this issue will also pop up when ingesting the primaries as parents of the objects. Should I not ingest these relationships?

I think all of the unresolved parents need to also be ingested as sources. This does not mean ingest all primaries, just the ones that are unresolved parents. Might be easiest to do this "by hand" or source-by-source.

Also, I noticed that the "ingest_companion_relationships" function (simple/utils/companions.py) will need some modification to allow the new "unresolved child" relationship.

Wait, I also think the issue is that some of the primary names are not SIMBAD resolvable. After searching the database, the function searches SIMBAD for the source's name. IF the name is unresolvable in SIMBAD, this returns no source found.

@kelle
Copy link
Collaborator

kelle commented Jul 9, 2025

Aha! Good find.

  1. modify the ingest_companion_relationship function to give a better error message
  2. search Simbad and see if there's a better name

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.

Calamari sample: ingest projected separations Calamari Sources and Companions

2 participants