Skip to content

Commit

Permalink
Merge pull request #100 from lsst/tickets/DM-27653
Browse files Browse the repository at this point in the history
DM-27653: output.chain[0] now only returns a str not tuple so change assignement
  • Loading branch information
timj committed Nov 19, 2020
2 parents 3a786f4 + 2ebf96a commit 4212b72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/ctrl/mpexec/cmdLineFwk.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def __str__(self):
"""Whether this collection already exists in the registry (`bool`).
"""

chain: List[Tuple[str, DatasetTypeRestriction]]
chain: List[str]
"""The definition of the collection, if it already exists (`list`).
Empty if the collection does not alredy exist.
Expand Down Expand Up @@ -266,7 +266,7 @@ def _makeReadParts(cls, args: argparse.Namespace):
self.check(args)
if self.output and self.output.exists:
if args.replace_run:
replaced, _ = self.output.chain[0]
replaced = self.output.chain[0]
inputs = self.output.chain[1:]
_LOG.debug("Simulating collection search in '%s' after removing '%s'.",
self.output.name, replaced)
Expand Down

0 comments on commit 4212b72

Please sign in to comment.