27 """Config for MakeGen3SkyMapTask
29 name = pexConfig.Field(
30 doc=
"Name assigned to created skymap in butler registry",
35 skyMap = skyMapRegistry.makeField(
42 raise ValueError(
"The name field must be set to the name of the specific "
43 "skymap to use when writing to the butler")
47 ConfigClass = MakeGen3SkyMapConfig
48 _DefaultName =
"makeGen3SkyMap"
50 """This is a task to construct and optionally save a SkyMap into a gen3
55 config : `MakeGen3SkyMapConfig` or None
56 Instance of a configuration class specifying task options, a default
57 config is created if value is None
61 super().
__init__(config=config, **kwargs)
63 def run(self, butler):
64 """Construct and optionally save a SkyMap into a gen3 repository
67 butler : `lsst.daf.butler.Butler`
68 Butler repository to which the new skymap will be written
70 skyMap = self.config.skyMap.apply()
71 skyMap.logSkyMapInfo(self.log)
72 skyMap.register(self.config.name, butler)
73 return pipeBase.Struct(