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

Implement stpipe CLI command for saving a Step's default + CRDS config file #44

Closed
stscijgbot-jp opened this issue Feb 5, 2021 · 1 comment

Comments

@stscijgbot-jp
Copy link

Issue JP-1897 was created on JIRA by Edward Slavich:

The "stpipe print-config" or "stpipe save-config" subcommand (part of this ticket will be polling opinions on which of these will work best) will allow users to save Step subclass default and CRDS parameters to an ASDF config file which the user can customize.  An example help output for the "print-config" option, which prints the ASDF to stdout where it can be redirected as needed:

$ ./stpipe print-config -h
usage: stpipe print-config [-h] <class> <input-file>

print step or pipeline config to stdout

positional arguments:
  <class>       step or pipeline class name (case-insensitive, module path may be omitted for unique class names)
  <input-file>  input dataset or association (used to fetch parameters from CRDS)

optional arguments:
  -h, --help    show this help message and exit

examples:
  save a pipeline config to a local file:

    stpipe print-config jwst.pipeline.Detector1Pipeline dataset.fits > config.asdf

See #8 for discussion.

@nden nden added the stpipe label Feb 19, 2021
@hbushouse hbushouse transferred this issue from spacetelescope/jwst Mar 29, 2022
@stscijgbot-jp
Copy link
Author

Comment by Howard Bushouse on JIRA:

Closing this ticket. Work will be tracked via stpipe issue #44

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