rminstr_specs.HP34420A¶
Classes¶
Class that defines the current datasheet uncertainties for the HP 34420A. |
Package Contents¶
- class rminstr_specs.HP34420A.DatasheetDCV(name: str = 'HP34420A', serial: str = 'NA', v_range: float = None, days_since_cal: float = None, t_ambient: float = None, null: bool = None, time_zero: float = None, suppress_warnings: bool = False, **kwargs)¶
Bases:
rminstr_specs.SpecificationClass that defines the current datasheet uncertainties for the HP 34420A.
This model assumes a uniform distribution between the datasheet ranges, the functions output the standard deviation (1/sqrt(3)) of the posted errors.
Initialize instance of DCV datasheet specs of HP34420A.
- Parameters:
- namestr, optional,
Used in spec_manager to generate names for uncertainty mechanisms. Used for identifying instruments in warnings. The default is ‘HP34420A’.
- serialstr, optional
Serial of instrument. Used to identify calibration history in log books. The default is ‘NA’.
- v_rangefloat, optional
Voltage measurement range. The default is None.
- days_since_calfloat, optional
Days since the last calibration. The default is None.
- t_ambientfloat, optional
Ambient temperature of measurement. The default is None.
- nullbool, optional
True if instrument was nulled prior to measurement. The default is False.
- time_zerostr,
Used as comparison time when trying to infer days since cal from logbook.
- suppress_warningsbool, optional
Suppress warning output to the console. The default is False.
- Returns:
- None.
- components¶
- v_range = None¶
- days_since_cal = None¶
- t_ambient = None¶
- null = None¶
- temp_out_of_spec = True¶
- all_manufacturer_errors(readings: numpy.ndarray, addition_method: str = 'spec')¶
Return the sum of all manufacturer errors for readings.
Ensure that errors are added in the way specified by the data sheet, if provided. The default is spec unless overridden by a child class.
if spec, it will use linear since the spec sheet does not specify if linear, it will add linearly if quadrature, it will add in quadrature
- Parameters:
- readings_np.ndarray
Array of measurements to get uncertainties for.
- addition_methodstr, optional
Specifies how the errors are added together. Linear will add all the standard deviations linearly, whereas quad will do a quadrature sum. Linear will give a worst case. Setting this to ‘spec’ will do whatever the specsheet says if stated, otherwise it will revert to linear. The default is ‘spec’.
- Returns:
- np.ndarray
Array of manufacturer errors of same shape as readings.
- accuracy_offset(readings: numpy.ndarray)¶
Get the offset accuracy errors.
- accuracy_slope(readings: numpy.ndarray)¶
Get the slope accuracy errors.
- temperature_coef_offset(readings: numpy.ndarray)¶
Get the temperature coefficient errors.
- temperature_coef_slope(readings: numpy.ndarray)¶
Get the temperature coefficient slope errors.