tdsxtract package

Submodules

tdsxtract.helpers module

tdsxtract.helpers.fft(time, signal)[source]

Fourier transform.

Parameters:
  • time (array) – The time points.

  • signal (array) – Signal amplitude.

Returns:

  • frequencies (array) – Frequencies (in Hz).

  • fourier_transform (array) – Fourier transform of the signal.

tdsxtract.helpers.get_epsilon_estimate(voltage_reference, voltage_sample, time, sample_thickness)[source]

Get a rough estimate of the permittivity value.

Parameters:
  • voltage_reference (array) – Reference voltage.

  • voltage_sample (array) – Sample voltage.

  • time (array) – Time steps (in s).

  • sample_thickness (float) – Thickness of the sample (in m).

Returns:

epsilon_estimate – Permittivity estimate.

Return type:

float

tdsxtract.helpers.pos2time(position)[source]

Converts stage position to time shift.

Parameters:

position (array) – The position of the stage (in m).

Returns:

Corresponding time shift (in s).

Return type:

array

Notes

2*position since 2 paths of the laser are shifted on the delay stage

tdsxtract.helpers.restrict(x, min=None, max=None)[source]
tdsxtract.helpers.smooth(data, cutoff=0.05, order=3)[source]

Data smoothing.

Parameters:
  • data (array) – The data to smooth.

  • cutoff (float) – Filter cutoff frequency (the default is 0.05).

  • order (int) – Filter order (the default is 3).

Returns:

smooth_data – Smoothed data.

Return type:

array

tdsxtract.io module

tdsxtract.io.load(filename)[source]

Load measurement data.

Parameters:

filename (str) – Name of the file to load.

Returns:

  • position (array) – position of the delay stage (in microns)

  • voltage (array) – signal amplitude (in mV).

tdsxtract.models module

class tdsxtract.models.ColeCole[source]

Bases: object

fit(epsilon, wavelengths, bounds, x0=None, type='de')[source]
model(omega, eps_inf, eps_static, tau, alpha)[source]

tdsxtract.optim module

tdsxtract.optim.extract(sample, wavelengths, t_exp, epsilon_initial_guess=None, eps_re_min=None, eps_re_max=None, eps_im_min=None, eps_im_max=None, thickness_tol=0, opt_thickness=False, weight=1)[source]
tdsxtract.optim.sample_transmission(epsilons, thickness, sample=None, wavelengths=None)[source]

tdsxtract.stack module

tdsxtract.stack.get_coeffs_stack(config)[source]
tdsxtract.stack.get_transmission(sample, lambda0)[source]

Module contents

Tools for extracting permittivity values from Terahertz Time Domain Spectroscopy measurements.