Bases: object
Creates a handle with the ability to store and updates node probability.
Parameters: |
|
---|
Warning
Note that the handle attributes/methods are not collective; if running on multiple nodes, only local values will be stored/updated on each node.
nodeHandle.getLocalNode(node[, p]) | Get thet stored probability and timestep array for particle p at a specified node. |
nodeHandle.getLocalNodes([t, p]) | Get thet stored node probability and timestep array for particle p over all watched nodes. |
nodeHandle.update(t, psi[, psi2, psi3]) | Update the handle with node probability for an additional timestep. |
Get thet stored probability and timestep array for particle p at a specified node.
Parameters: | node (int) – the node to retrieve data from. |
---|---|
Keyword Arguments: | |
p (int) – (1,``2``,``3``) - the particle to return probability data for. | |
Returns: | tuple of arrays : returns arrays corresponding to the times recorded (if t=None) and the probabilities over the specified node. |
Example
>>> timeArray, probXArray, probYArray = nodeHandle.getLocalNodes(3)
Get thet stored node probability and timestep array for particle p over all watched nodes.
Keyword Arguments: | |
---|---|
|
|
Returns: | tuple of arrays : returns arrays corresponding to the times recorded (if t=None) and the probabilities over watched nodes. |
Example
>>> timeArray, probXArray, probYArray = nodeHandle.getLocalNodes()
or
>>> probXArray, probYArray = nodeHandle.getLocalNodes(t=4)
Update the handle with node probability for an additional timestep.
Parameters: |
|
---|