Skip to content

Commit

Permalink
Modify getQuantaForTask to support extra log info
Browse files Browse the repository at this point in the history
  • Loading branch information
leeskelvin committed Oct 10, 2022
1 parent 33d0155 commit 3e6f774
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/changes/DM-36145.feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* modifications to getQuantaForTask to support showing added additional quanta information in the logger
2 changes: 1 addition & 1 deletion python/lsst/pipe/base/graph/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def getQuantaForTask(self, taskDef: TaskDef) -> FrozenSet[Quantum]:
The `set` of `Quantum` that is associated with the specified
`TaskDef`.
"""
return frozenset(node.quantum for node in self._taskToQuantumNode[taskDef])
return frozenset(node.quantum for node in (self._taskToQuantumNode.get(taskDef) or tuple()))

def getNodesForTask(self, taskDef: TaskDef) -> FrozenSet[QuantumNode]:
"""Return all the `QuantumNodes` associated with a `TaskDef`.
Expand Down

0 comments on commit 3e6f774

Please sign in to comment.