lsst.obs.base  20.0.0-73-gf477d90+47b9488b07
Functions
lsst.obs.base.script.registerInstrument Namespace Reference

Functions

def registerInstrument (repo, instrument)
 

Function Documentation

◆ registerInstrument()

def lsst.obs.base.script.registerInstrument.registerInstrument (   repo,
  instrument 
)
Add an instrument to the data repository.

Parameters
----------
repo : `str`
    URI to the location to create the repo.
instrument : `list` [`str`]
    The fully-qualified name of an Instrument subclass.

Raises
------
RuntimeError
    If the instrument can not be imported, instantiated, or obtained from
    the registry.
TypeError
    If the instrument is not a subclass of lsst.obs.base.Instrument.

Definition at line 26 of file registerInstrument.py.