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

Improve pipeline interface #5429

Closed
stscijgbot-jp opened this issue Oct 26, 2020 · 4 comments
Closed

Improve pipeline interface #5429

stscijgbot-jp opened this issue Oct 26, 2020 · 4 comments

Comments

@stscijgbot-jp
Copy link
Collaborator

Issue JP-1759 was created on JIRA by Nadia Dencheva:

This ticket is to discuss, agree on and implement a better interface to the pipeline,

specifically how users will find out the names of pipeline and step classes to use as an argument to "strun". I suggest a two tier approach.

 

  • At the top level get the names of the various pipelines.
strun --list-jwst-pipelines```
or a script:


```java
list_jwst_pipelines
  • One level down get the names of the step classes in a specific pipeline
strun jwst.pipeline.Image2Pipeline --list-steps

This can use the "step_defs" dictionary in each pipeline class. Or something better?

Also I think it's worth considering having command line scripts for each pipeline, e.g. 

calwebb_image2
@stscijgbot-jp
Copy link
Collaborator Author

Comment by Jonathan Eisenhamer on JIRA:

FYI towards implementation: In master, much of the code to do this discovery is already in jwst.lib.suffix. Work being done on issue jp-1751 will provide the more general function jwst.stpipe.utilities.all_steps.

@stscijgbot-jp
Copy link
Collaborator Author

Comment by Edward Slavich on JIRA:

Initial discussion at spacetelescope/stpipe#8

@stscijgbot-jp
Copy link
Collaborator Author

Comment by Edward Slavich on JIRA:

Example with the traitlets package: spacetelescope/stpipe#10

@nden nden added this to the Build 7.7.x milestone Jan 31, 2021
@nden nden added the stpipe label Jan 31, 2021
@stscijgbot-jp
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants