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

add ability to run an obs_base command via the butler command

    XMLWordPrintable

    Details

    • Story Points:
      8
    • Sprint:
      DB_S20_02
    • Team:
      Data Access and Database
    • Urgent?:
      No

      Description

      Make the butler command in daf_butler able to call the register command in obs_base (at python/lsst/obs/base/instrument.py).

      To do this, when obs_base is setup, it should add a colon separated list of CLI python code modules or functions. For example set it to lsst.obs.base.cli.

      Then in butler command itself do something like:

      for module in os.environ["DAF_BUTLER_PLUGINS"].split(":"):
       blah = doImport(cls) 

      and maybe have the imported class import the subcommands to click somehow
      ...it may help to be explicit and have the env var contain the actual command function (so lsst.obs.base.cli.register or somesuch). 

        Attachments

          Issue Links

            Activity

            No work has yet been logged on this issue.

              People

              Assignee:
              npease Nate Pease
              Reporter:
              npease Nate Pease
              Reviewers:
              Tim Jenness
              Watchers:
              Jim Bosch, Nate Pease, Tim Jenness
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: