microcalorimetry.export

This module contains functions for exporting HDF5 datasets into different formats that aren’t the preffered format for the microcaloriemetry program.

Functions

as_doteff(output_path, eta, s11[, sensor_name, ...])

Generate a .eff file from an effective efficiency measurement.

as_dotdut_s11(s11, path, device[, expansion_factor])

Export a device to a .dut file for 1 port s-parameters.

Package Contents

microcalorimetry.export.as_doteff(output_path: microcalorimetry._tkquick.gui_dtypes.SaveAsPath, eta: microcalorimetry.configs.EtaLike, s11: microcalorimetry.configs.S11Like, sensor_name: str = None, connect_number: int = None, expansion_factor: float = 2, frequency_decimals: int = 2, eta_decimals: int = 4, s11_abs_decimals: int = 4, s11_angle_decimals: int = 2, columns: int = 7)[source]

Generate a .eff file from an effective efficiency measurement.

These files contain an effective efficiency measurement, as well as a reflection coefficient and an expression of uncertainty. Type A and Type B uncertainties will be inferred from the objects covariance metadata.

Exporting as a .eff file will lose covariance information about the measurement.

Parameters:
  • output_path (SaveAsPath) – File path to save to.

  • eta (configs.EtaLike) – Effective efficiency of the sensor.

  • s11 (configs.S11Like) – S11 data of the sensor.

  • sensor_name (str) – Name of the sensor. If not provided, won’t be included in the output file.

  • connect_number (int) – Connect number of the sensor. If not provided, won’t be included in the comment line.

  • expansion_factor (int, optional) – Expansion factor of the total uncertainty. If >= 1, will use that as the expansion factor. If < 1, then will calculate the confidence interval of the provided fraction (e.g 0.95 will calculate the 95% confidence interval) using metadata of the uncertainty mechanisms.

  • frequency_decimals (int, optional) – Decimals for reporting frequency, by default 2

  • eta_decimals (int, optional) – Decimals for reporting the eta parameters, by default 4.

  • s11_abs_decimals (int, optional) – Decimals for reporting the S11 absolute value, by default 4.

  • s11_angle_decimals (int, optional) – Decimals for reporting the S11 angle vakule, by default 2.

  • columns (int, optional) – Number of columns in the eff file. By default 7.

microcalorimetry.export.as_dotdut_s11(s11: microcalorimetry.configs.S11Like, path: microcalorimetry._tkquick.gui_dtypes.SaveAsPath, device: str, expansion_factor: float = 2.0)[source]

Export a device to a .dut file for 1 port s-parameters.

This is a cal services

Parameters:
  • s11 (configs.S11Like) – Path to output file.

  • path (SaveAsPath) – RMEMeas measurement s1p_c data.

  • device (str) – Name of device.

  • expansion_factor (float, optional) – If >1 will use the provided expansion factor. If < 1, will calculate the confidence interval (i,e 0.95 will calculate the 95% confidence interval.

Returns:

Path to exported DUT file.

Return type:

Path