Skip to content

Commit

Permalink
Don't raise when --dataset-query-constraint args are irrelevant.
Browse files Browse the repository at this point in the history
They might be relevant for a different subgraph, and this option needs
to be usable on multi-subgraph pipelines where the subgraphs don't have
overall inputs in common.
  • Loading branch information
TallJimbo committed Nov 11, 2024
1 parent 591c0c7 commit 088a6df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/lsst/pipe/base/all_dimensions_quantum_graph_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,10 +479,10 @@ def from_builder(
constraint = set(builder.dataset_query_constraint)
inputs = result.overall_inputs - result.empty_dimensions_dataset_types.keys()
if remainder := constraint.difference(inputs):
raise QuantumGraphBuilderError(
f"{remainder} dataset type(s) specified as a graph constraint, but"
f" do not appear as an overall input to the specified pipeline: {inputs}."
" Note that component datasets are not permitted as constraints."
builder.log.debug(
"Ignoring dataset types %s in dataset query constraint that are not inputs to this "
"subgraph, on the assumption that they are relevant for a different subraph.",
remainder,
)
builder.log.debug(f"Constraining graph query using {constraint}")
result.query_args["datasets"] = constraint
Expand Down

0 comments on commit 088a6df

Please sign in to comment.