skrf.io.general.TouchstoneEncoder

class skrf.io.general.TouchstoneEncoder(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, default=None)[source]

Serializes Network object by converting arrays to lists, splitting complex numbers into real and imaginary, and breaking down frequency objects into dicts.

Attributes

item_separator

key_separator

Methods

__init__

Constructor for JSONEncoder, with sensible defaults.

default

Implement this method in a subclass such that it returns a serializable object for o, or calls the base implementation (to raise a TypeError).

encode

Return a JSON string representation of a Python data structure.

iterencode

Encode the given object and yield each string representation as available.