BinaryComponentLink¶
-
class
glue.core.component_link.
BinaryComponentLink
(left, right, op)[source]¶ Bases:
glue.core.component_link.ComponentLink
A ComponentLink that combines two inputs with a binary function
Parameters: - left – The first input argument. ComponentID, ComponentLink, or number
- right – The second input argument. ComponentID, ComponentLink, or number
- op – A function with two inputs that works on numpy arrays
The CompoentLink represents the logic of applying op to the data associated with the inputs left and right.
Methods Summary
compute
(data[, view])replace_ids
(old, new)Methods Documentation