Skip to content

Commit

Permalink
Make subTaskName in metaDataMetrics optional
Browse files Browse the repository at this point in the history
atools/metadataMetrics.py failed if subtaskName wasn't specified. It
should be able to scan the whole metadata file if necessary.
  • Loading branch information
jrmullaney committed Sep 11, 2024
1 parent 16ace83 commit 0fa1df6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/lsst/analysis/tools/atools/metadataMetrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class MetadataMetricTool(AnalysisTool):
doc="The name of the subtask to extract metadata from. "
"If None, the entire task metadata will be used.",
default=None,
optional=True,
)

metrics = DictField[str, str](
Expand Down

0 comments on commit 0fa1df6

Please sign in to comment.