ess.amor.calibrations.calibration_factor

ess.amor.calibrations.calibration_factor

ess.amor.calibrations.calibration_factor(data_array, m_value=None, critical_edge=None, alpha=None)

Return the calibration factor for the supermirror.

Parameters
  • data_array (DataArray) – Data array to get q-bins/values from.

  • m_value (Optional[Variable], default: None) – m-value for the supermirror. Defaults to 5.

  • critical_edge (Optional[Variable], default: None) – Supermirror critical edge. Defaults to 0.022 1/angstrom.

  • alpha (Optional[Variable], default: None) – Supermirror alpha value. Defaults to 0.25 / 0.088 angstrom.

Returns

Variable – Calibration factor at the midpoint of each Q-bin.

Return type

scipp._scipp.core.Variable