swot_simulator.settings.NumberOfBeams#

class swot_simulator.settings.NumberOfBeams(value, *args, **kwargs)[source]#

Bases: int

Handle the number of beams.

__init__()#

Methods

NumberOfBeams.as_integer_ratio()

Return integer ratio.

NumberOfBeams.bit_count()

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

NumberOfBeams.bit_length()

Number of bits necessary to represent self in binary.

NumberOfBeams.conjugate

Returns self, the complex conjugate of any int.

NumberOfBeams.from_bytes(byteorder, *[, signed])

Return the integer represented by the given array of bytes.

NumberOfBeams.to_bytes(length, byteorder, *)

Return an array of bytes representing an integer.

NumberOfBeams.__new__(cls, value, *args, ...)

Attributes

NumberOfBeams.denominator

the denominator of a rational number in lowest terms

NumberOfBeams.imag

the imaginary part of a complex number

NumberOfBeams.numerator

the numerator of a rational number in lowest terms

NumberOfBeams.real

the real part of a complex number