zero.tools module

User tools.

zero.tools.create_response(source, sink, data, frequencies=None, source_unit=None, sink_unit=None)[source]

Create a response between the specified source and sink.

Parameters
  • source, sink (BaseElement or str) – The response’s source and sink. This can be either an existing component or a string. If the source or sink is a string, the corresponding source_unit or sink_unit must be specified.

  • data (sequence or Series) – The response’s series or complex magnitude.

  • frequencies (sequence, optional) – The response’s frequency vector. If y1 is a Series, a ValueError is raised.

  • source_unit, sink_unit (str, optional) – The source and sink unit. This is required if the corresponding source or sink is not a circuit element.

Returns

Response – The response.