- class rfnode.common.util.NumpyComplexEncoder(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, default=None)
Bases:
JSONEncoder- default(obj) any
Implement this method in a subclass such that it returns a serializable object for
o, or calls the base implementation (to raise aTypeError).For example, to support arbitrary iterators, you could implement default like this:
def default(self, o): try: iterable = iter(o) except TypeError: pass else: return list(iterable) # Let the base class default method raise the TypeError return super().default(o)
- class rfnode.common.util.Util
Bases:
object- classmethod generate_array(freq_start: int, freq_end: int, freq_step: int, device_amount: int) list[int64]
Generates an array of frequencies based on the provided start, end, and step values. Args:
freq_start (int): The starting frequencies in HZ. freq_end (int): The ending frequencies in HZ. freq_step (int): The step size for frequency increments in HZ. device_amount (int): The number of devices to split the frequencies into
- Return:
list[int]:Array of equal or near-equal size.
.