normalize#

Module containing different normalization modes for artof fixed and sweep measurements.

artof.normalize.get_norm_scaling_factor(norm_modes, iterations, dwell_time)#

Get scaling factor for normalization based on normalization modes.

Parameters:
  • norm_modes (list) – List of normalization modes (‘iterations’, ‘dwell time’).

  • iterations (int) – Number of iterations.

  • dwell_time (float) – Dwell time.

Returns:

Scaling factor for normalization.

Return type:

float

artof.normalize.norm_sweep(binned_data, bin_edges, sweep_config, sweep_steps, lens_k)#

Normalize sweep data to lens k value.

Parameters:
  • binned_data (ndarray) – Binned data to normalize.

  • bin_edges (list) – Bin edges.

  • sweep_config (SweepConfig) – SweepConfig object containing sweep start and end energy, adjusted channel width.

  • sweep_steps (int) – Number of steps in sweep.

  • lens_k (float) – Lens k value.

Returns:

Normalized sweep data.

Return type:

ndarray