qat.experimental.waveforms.shapes.validators module

Shared parameter validators for waveform shape sampling functions.

validate_fractional_breadth(fractional_breadth)

Raises ValueError if fractional_breadth is not greater than zero.

Parameters:

fractional_breadth (float) – The value to validate.

Return type:

None

validate_fractional_rise(fractional_rise)

Raises ValueError if fractional_rise is not greater than zero.

Parameters:

fractional_rise (float) – The value to validate.

Return type:

None

validate_fractional_top_width(fractional_top_width)

Raises ValueError if fractional_top_width is not in [0, 1].

Parameters:

fractional_top_width (float) – The value to validate.

Return type:

None

validate_rise_location(rise_location)

Raises ValueError if rise_location is not greater than zero.

Parameters:

rise_location (float) – The value to validate.

Return type:

None