NodeBipartite

class lsst.pipe.base.pipeline_graph.NodeBipartite(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: IntEnum

Constants for the ‘bipartite’ key in NetworkX graph views.

Attributes Summary

DATASET_OR_TYPE

Value for nodes that represent dataset types (in pipeline graphs) or datasets (in quantum graphs).

TASK_OR_QUANTUM

Value for nodes that represent tasks (in pipeline graphs) or quanta (in quantum graphs).

denominator

the denominator of a rational number in lowest terms

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

real

the real part of a complex number

Methods Summary

as_integer_ratio(/)

Return a pair of integers, whose ratio is equal to the original int.

bit_count(/)

Number of ones in the binary representation of the absolute value of self.

bit_length(/)

Number of bits necessary to represent self in binary.

conjugate

Returns self, the complex conjugate of any int.

from_bytes(*args, **kwargs)

See IntEnum.from_bytes.

is_integer(/)

Returns True.

to_bytes(*args, **kwargs)

See IntEnum.to_bytes.

Attributes Documentation

DATASET_OR_TYPE = 0

Value for nodes that represent dataset types (in pipeline graphs) or datasets (in quantum graphs).

TASK_OR_QUANTUM = 1

Value for nodes that represent tasks (in pipeline graphs) or quanta (in quantum graphs).

denominator

the denominator of a rational number in lowest terms

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

real

the real part of a complex number

Methods Documentation

as_integer_ratio(/)

Return a pair of integers, whose ratio is equal to the original int.

The ratio is in lowest terms and has a positive denominator.

>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
bit_count(/)

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

>>> bin(13)
'0b1101'
>>> (13).bit_count()
3
bit_length(/)

Number of bits necessary to represent self in binary.

>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
conjugate()

Returns self, the complex conjugate of any int.

classmethod from_bytes(*args: Any, **kwargs: Any) Any

See IntEnum.from_bytes.

is_integer(/)

Returns True. Exists for duck type compatibility with float.is_integer.

to_bytes(*args: Any, **kwargs: Any) Any

See IntEnum.to_bytes.