Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-5421

Add --show history option to cmdLineTask

    XMLWordPrintable

Details

    • Story
    • Status: Done
    • Resolution: Done
    • None
    • pipe_base
    • None
    • 2
    • DRP F16-5
    • Data Release Production

    Description

      pex_config is able to report where a config parameter is set. Please add a command line option --show history=config.parameter.name to the cmdLineTask parser.

      The implementation will probably want to use something like:

      import lsst.pex.config.history as pch
      pch.Color.colorize(False)
      print pch.format(config.calibrate.astrometry.solver, "matchingRadius")
      

      Attachments

        Issue Links

          Activity

            You can control the colouring using

                    import lsst.pex.config.history
                    lsst.pex.config.history.Color.colorize(False)
            

            DM-7940 provides a way to disable the colouring by piping to cat.

            rhl Robert Lupton added a comment - You can control the colouring using import lsst.pex.config.history lsst.pex.config.history.Color.colorize(False) DM-7940 provides a way to disable the colouring by piping to cat .

            Nice feature, but please simplify the implementation as per github comments (which I tried to mark as a review, but could not because I created the pull request).

            rowen Russell Owen added a comment - Nice feature, but please simplify the implementation as per github comments (which I tried to mark as a review, but could not because I created the pull request).

            Merged to master post-code review improvements

            rhl Robert Lupton added a comment - Merged to master post-code review improvements

            People

              rhl Robert Lupton
              rhl Robert Lupton
              Russell Owen
              Robert Lupton, Russell Owen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Jenkins

                  No builds found.