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

ensure ogip lightcurve is produced by oda api #267

Open
volodymyrss opened this issue Jul 12, 2024 · 3 comments
Open

ensure ogip lightcurve is produced by oda api #267

volodymyrss opened this issue Jul 12, 2024 · 3 comments
Assignees

Comments

@volodymyrss
Copy link
Member

as reminded by esg-epfl-apc/tools-astro#115 (comment) and it's good to follow the standard.

@burnout87 I think you dealt with this?

@burnout87
Copy link
Collaborator

burnout87 commented Jul 15, 2024

I suppose you refer to

class OdaLightCurve(OdaProduct):
?

@ferrigno and I worked on it (mainly) for the gallery

@dsavchenko
Copy link
Member

dsavchenko commented Jul 15, 2024

I suppose you refer to

It's about

class LightCurveDataProduct(NumpyDataProduct):

Of course, these parts should not be completely separated (as well as image, spectrum etc)
This will require some refactoring

Even worse, we have some logic (mainly visualisation) in dispatcher plugin https://github.com/oda-hub/dispatcher-plugin-nb2workflow/blob/9ea4d3c8202ca500e3cc0bf9f7a2ffb9d4755d4f/dispatcher_plugin_nb2workflow/products.py#L241 which refers to the main code https://github.com/oda-hub/dispatcher-app/blob/e8f8082f68008510a7c9e865ff883c34852890a4/cdci_data_analysis/analysis/products.py#L406 completely separate from what's in oda_api. Not saying that we will also have a js visualisation library...

@volodymyrss
Copy link
Member Author

volodymyrss commented Jul 24, 2024

need to replace this with the coming ogip functionality

when reading from file, there should be product-specific validation and transformation (i.e. loose reading and strict writing)

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

No branches or pull requests

3 participants