LSST Applications  22.0.1,22.0.1+01bcf6a671,22.0.1+046ee49490,22.0.1+05c7de27da,22.0.1+0c6914dbf6,22.0.1+1220d50b50,22.0.1+12fd109e95,22.0.1+1a1dd69893,22.0.1+1c910dc348,22.0.1+1ef34551f5,22.0.1+30170c3d08,22.0.1+39153823fd,22.0.1+611137eacc,22.0.1+771eb1e3e8,22.0.1+94e66cc9ed,22.0.1+9a075d06e2,22.0.1+a5ff6e246e,22.0.1+a7db719c1a,22.0.1+ba0d97e778,22.0.1+bfe1ee9056,22.0.1+c4e1e0358a,22.0.1+cc34b8281e,22.0.1+d640e2c0fa,22.0.1+d72a2e677a,22.0.1+d9a6b571bd,22.0.1+e485e9761b,22.0.1+ebe8d3385e
LSST Data Management Base Package
Public Member Functions | Public Attributes | List of all members
lsst.pipe.base.graph.quantumNode.QuantumNode Class Reference

Public Member Functions

bool __eq__ (self, object other)
 
int __hash__ (self)
 

Public Attributes

 taskDef
 

Detailed Description

This class represents a node in the quantum graph.

The quantum attribute represents the data that is to be processed at this
node.

Definition at line 66 of file quantumNode.py.

Member Function Documentation

◆ __eq__()

bool lsst.pipe.base.graph.quantumNode.QuantumNode.__eq__ (   self,
object  other 
)

Definition at line 83 of file quantumNode.py.

83  def __eq__(self, other: object) -> bool:
84  if not isinstance(other, QuantumNode):
85  return False
86  if self.quantum != other.quantum:
87  return False
88  return self.taskDef == other.taskDef
89 

◆ __hash__()

int lsst.pipe.base.graph.quantumNode.QuantumNode.__hash__ (   self)
For graphs it is useful to have a more robust hash than provided
by the default quantum id based hashing

Definition at line 90 of file quantumNode.py.

90  def __hash__(self) -> int:
91  """For graphs it is useful to have a more robust hash than provided
92  by the default quantum id based hashing
93  """
94  return hash((self.taskDef, self.quantum))

Member Data Documentation

◆ taskDef

lsst.pipe.base.graph.quantumNode.QuantumNode.taskDef

Definition at line 88 of file quantumNode.py.


The documentation for this class was generated from the following file: