Skip to content

Commit

Permalink
Merge pull request #279 from lsst/tickets/DM-36457
Browse files Browse the repository at this point in the history
DM-36457: Use globs instead of regexes for dataset type patterns
  • Loading branch information
timj authored Aug 9, 2024
2 parents 713821a + cf652ff commit 5c219ae
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions python/lsst/analysis/tools/tasks/gatherResourceUsage.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
import numpy as np
import pandas as pd
from lsst.daf.butler import Butler, DatasetRef, DatasetType
from lsst.daf.butler.utils import globToRegex
from lsst.pex.config import Field, ListField
from lsst.pipe.base import (
Instrument,
Expand Down Expand Up @@ -573,10 +572,9 @@ def __init__(
# build the pipeline.
input_dataset_types: Any
if not dataset_type_names:
base_dataset_type_filter = re.compile(r"\w+_metadata")
input_dataset_types = base_dataset_type_filter
input_dataset_types = "*_metadata"
else:
input_dataset_types = [globToRegex(expr) for expr in dataset_type_names]
input_dataset_types = dataset_type_names
pipeline_graph = PipelineGraph()
metadata_refs: dict[str, set[DatasetRef]] = {}
consolidate_config = ConsolidateResourceUsageConfig()
Expand Down

0 comments on commit 5c219ae

Please sign in to comment.