-
Notifications
You must be signed in to change notification settings - Fork 2
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
Write steps and pipeline following JWST pipeline structure #11
Comments
I agree that this would be great. However, I think we should check with the pipeline folks first if they would be willing to add the KPI3Pipeline to the official JWST pipeline. |
Hi @kammerje I now have some experience with the JWST pipeline interface. I feel like, even if in the end this is not merge in the official pipeline, using the same building blocks would help a lot for reducing boilerplate code (related to saving outputs, skipping steps, etc) and would also simplify the inclusion of new/external pipeline steps (e.g. someone writes a step for another mode that would be useful for KPI, it can just be added to the pipeline and be run as is). I think the main downside of this approach would be file I/O: pipeline steps expect Data models I have a somewhat clear idea of how this could be done and have started some tests on a dedicated branch. Let me know what you think @kammerje. |
I'm not sure if I understand this correctly, but the official pipeline also inputs and outputs FITS files. I'm guessing the FITS file handling is only wrapped into the pipeline stages and under the hood, all steps are called with datamodels. It is right that this will be an issue for the KPFITS file which doesn't have a corresponding datamodel. |
Exactly, once this FITS is read, everything else in pipeline code assumes datamodels. This is what I meant. I'm working out a datamodel for KPFITS file right now. It's almost working, but I still have a few problems to fix. I'll keep you posted and probably open a draft PR once it works. |
@vandalt I just ran the |
I just ran an example script (NIRISS) with pipeline Did you set |
Currently, the pipeline and its various steps are similar to the JWST pipeline from the user's perspective, but they don't follow the same code structure and inherit the same classes. Following the JWST structure should remove some complexity from the code and make it easier to eventually make this an official JWST pipeline.
There is documentation here writing a pipeline and a step.
I'm not self-assigning for now in case someone else wants to work on this in the short term, but I'm happy to look at this in the next few weeks.
The text was updated successfully, but these errors were encountered: