lsst-camera-dh / eotask-gen3

EO testing tasks implemented in gen3
Other
0 stars 0 forks source link

Mechanism for sharing connections and parameters. #8

Closed eacharles closed 3 years ago

eacharles commented 3 years ago

Many of the parameters and connections used in the package are used in several places. It would be good to share them. This could be as simple as having a file with a bunch of global templates, and then cloning them.

For example, in the templates we could have:

OUTPUT_CONNECT = cT.Output(
    name="calibOutput",
    doc="Electrial Optical Calibration Output",
    storageClass="EoCalib",
    dimensions=("instrument", "detector"),
)

And then in the connections class we could have:

class EoReadNoiseTaskConnections:

    output = OUTPUT_CONNECT.clone(name="reReadNoise")

Will discuss this with DM folks. This issue is just a reminder.

eacharles commented 3 years ago

Ok, done.