messpy.get_t0

messpy.get_t0(fname: str, sigma: float = 1, scan: int | slice = -1, display_result: bool = True, plot: bool = True, t_range: Tuple[float, float] = (-2, 2), invert: bool = False, no_slope: bool = True) TzResult[source]

Determine t0 from a semiconductor messuarement in the IR. For that, it opens the given file, takes the mean of all channels and fits the resulting curve with a step function.

Note that the parameter

Parameters:
  • fname (str) – Filename of the messpy file containing the data

  • sigma (float, optional) – Used for calculating the displayed nummerical derviate, by default 1.

  • scan (int or slice) – Which scan to use, by default -1, the last scan. If given a slice, it takes the mean of the scan slice.

  • display_result (bool, optional) – If true, show the fitting results, by default True

  • plot (bool, optional) – If true, plot the result, by default True

  • t_range ((float, flot)) – The range which is used to fit the data.

  • invert (bool) – If true, invert data.

  • no_slope (bool) – Determines if a variable slope is added to the fit model.

Returns:

Result and presentation of the fit.

Return type:

TzResult