Skip to content

Commit

Permalink
Use new TaskDef classmethod to avoid duplicating file template.
Browse files Browse the repository at this point in the history
  • Loading branch information
TallJimbo committed Mar 14, 2022
1 parent d2f13e5 commit 6de0042
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/lsst/analysis/drp/gatherResourceStatistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
PipelineTaskConfig,
PipelineTaskConnections,
Struct,
TaskDef,
)
from lsst.pipe.base.pipelineIR import ConfigIR, LabeledSubset, PipelineIR, TaskIR
from lsst.pipe.base import connectionTypes as ct
Expand Down Expand Up @@ -71,7 +72,7 @@ def __init__(self, *, config):
# Inject one new input connection for each configured label.
for label in config.labels:
self.inputs.add(label)
dataset_type_name = f"{label}_metadata"
dataset_type_name = TaskDef.makeMetadataDatasetTypeName(label)
connection = ct.Input(
dataset_type_name,
storageClass="TaskMetadata",
Expand Down

0 comments on commit 6de0042

Please sign in to comment.