add_subrange#
- SweepMatrix.add_subrange(range_type, start, end=None, count=None, unit='GHz', clear=False, **kwargs)#
Add a subrange to the sweep.
- Parameters:
- range_type
str
Type of the subrange. Options are
"LinearCount"
,"LinearStep"
, and"LogScale"
.- start
float
Starting frequency.
- end
float
Stopping frequency. The default is
None
.- count
int
orfloat
Frequency count or frequency step. The default is
None
.- unit
str
,optional
Frequency units.
- clearbool,
optional
Whether to replace the subrange. The default is
False
, in which case subranges are appended.
- range_type
- Returns:
- bool
True
when successful,False
when failed.