add_subrange#

SetupSBR.add_subrange(range_type, start, end=None, count=None, unit='GHz', clear=False)[source]#

Add a subrange to the sweep.

Parameters:
range_typestr

Type of the subrange. Options are "LinearCount", "LinearStep", and "LogScale".

startfloat

Starting frequency.

endfloat

Stopping frequency.

countint or float

Frequency count or frequency step.

unitstr, optional

Frequency Units.

clearbool, optional

Either if the subrange has to be appended to existing ones or replace them.

Returns:
bool

True when successful, False when failed.