Skip to content
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

make data product reader more modular #1237

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

orionlee
Copy link
Collaborator

@orionlee orionlee commented Jul 7, 2022

It is a refactoring to make adding new data products easier.
In the current draft, QLP is used as an illustration.

  1. All data product specific information is encapsulated in the [data-product].py module.
  2. 1-line registration in io/__init__.py via the new register_data_product() function.
  3. One would no longer need to change detect.py, search.py and read.py when a new data product is to be added.
  4. Additionally, lightkurve users could add additional data products.

Feedback would be appreciated, before I proceed any further.

@orionlee orionlee requested a review from barentsen July 7, 2022 15:52
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.

None yet

1 participant