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

How to return "spectrum" data product as an astropy table #65

Closed
andriineronov opened this issue Jul 14, 2023 · 4 comments
Closed

How to return "spectrum" data product as an astropy table #65

andriineronov opened this issue Jul 14, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@andriineronov
Copy link

I tried to follow the advice of Denys and return the spectrum as an astropy table:
image

when the service is deployed, this "spectrum" product is just ignored. I only get "picture" ......

@andriineronov andriineronov added the bug Something isn't working label Jul 14, 2023
@dsavchenko
Copy link
Member

dsavchenko commented Jul 14, 2023

Is spec an astropy table itself?
You have to use ODAAstropyTable product, like in the example https://renkulab.io/gitlab/astronomy/mmoda/mmoda-nb2workflow-example/-/blob/master/notebooks/table.ipynb

@dsavchenko
Copy link
Member

For such obvious cases we could think of doing it automatically in the backend oda-hub/nb2workflow#97

@dsavchenko
Copy link
Member

Is spec an astropy table itself?
You have to use ODAAstropyTable product, like in the example https://renkulab.io/gitlab/astronomy/mmoda/mmoda-nb2workflow-example/-/blob/master/notebooks/table.ipynb

@andriineronov please confirm if this is the case

@andriineronov
Copy link
Author

Yes, it works now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants