yr.config.SchedulingAffinityType

yr.config.SchedulingAffinityType#

class yr.config.SchedulingAffinityType(value)[source]#

Bases: IntEnum

Bundle affinity type.

Please use ONLY REQUIRED_AFFINITY_IN_EACH_BUNDLE.

All other attributes are inherited from IntEnum and should not be used directly.

Attributes

real

the real part of a complex number

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

denominator

the denominator of a rational number in lowest terms

REQUIRED_AFFINITY_IN_EACH_BUNDLE

Currently, only REQUIRED_AFFINITY_IN_EACH_BUNDLE is supported, indicating strong affinity within each bundle.

Methods

conjugate

Returns self, the complex conjugate of any int.

bit_length

Number of bits necessary to represent self in binary.

to_bytes

Return an array of bytes representing an integer.

from_bytes

Return the integer represented by the given array of bytes.

as_integer_ratio

Return integer ratio.