Skip to content

Commit

Permalink
Temporary change to allow gen3 fringes to work.
Browse files Browse the repository at this point in the history
  • Loading branch information
czwa committed Oct 29, 2019
1 parent ee19f03 commit 35b92f1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/lsst/pipe/base/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class ScalarError(TypeError):
"""
def __init__(self, key, numDataIds):
super().__init__((f"Expected scalar for output dataset field {key}, "
"received {numDataIds} DataIds"))
f"received {numDataIds} DataIds"))


class PipelineTaskConnectionDict(UserDict):
Expand Down Expand Up @@ -424,8 +424,10 @@ def buildDatasetRefs(self, quantum: Quantum) -> typing.Tuple[InputQuantizedConne
# Unpack arguments that are not marked multiples (list of
# length one)
if not attribute.multiple:
if len(quantumInputRefs) != 1:
if len(quantumInputRefs) > 1:
raise ScalarError(attributeName, len(quantumInputRefs))
if len(quantumInputRefs) == 0:
continue
quantumInputRefs = quantumInputRefs[0]
# Add to the QuantizedConnection identifier
setattr(refs, attributeName, quantumInputRefs)
Expand Down

0 comments on commit 35b92f1

Please sign in to comment.