Skip to content

Conversation

@lesliech1004
Copy link

Helper method in sources.py that ingests close companions and resolved children regardless of how close they are to each other. It first checks if the source preexists in the database, then ingests the source.

Closes issue #175

@kelle kelle self-requested a review July 18, 2025 17:52
@kelle
Copy link
Contributor

kelle commented Jul 21, 2025

instead of a dedicated function, I think this would be better as a flag in ingest_source. Something like, ignore_neighbors = True/False. Default would be False but when ingesting close companions, it would be set to True.

@kelle kelle marked this pull request as draft July 22, 2025 20:17
Copy link
Contributor

@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 like a good start!

  • when duplicates are found, please add a logger.warning with the potential duplicates found.
  • what happens when ingest_neighbors = True but ra/dec is not provided?
  • add tests in test_source.py.
    • ingesting a close companion with ingest_neighbors = False and it shouldn't work.
    • ingest a close companion with ingest_neighbors = True and it should work.

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.

2 participants