ess.nmx.scaling#

Module Attributes

WavelengthBins

User configurable wavelength binning

ReferenceWavelength

The wavelength to select reference intensities.

WavelengthBinned

Binned mtz dataframe by wavelength(LAMBDA) with derived columns.

SelectedReferenceWavelength

The wavelength to select reference intensities.

ReferenceIntensities

Reference intensities selected by the wavelength.

EstimatedScaleFactor

The estimated scale factor from the reference intensities per hkl_asu.

EstimatedScaledIntensities

Scaled intensities by the estimated scale factor.

ScaledIntensityLeftTailThreshold

The threshold to cut the left tail of the estimated scaled intensities.

ScaledIntensityRightTailThreshold

The threshold to cut the right tail of the estimated scaled intensities.

WavelengthScaleFactors

The scale factors of "wavelength".

providers

Providers for scaling data.

default_parameters

Default parameters for scaling data.

Functions

average_roughly_scaled_intensities(binned, ...)

Scale the intensities by the estimated scale factor.

calculate_wavelength_scale_factor(...)

Calculate the scale factors along the "wavelength".

cut_tails(scaled_intensities[, ...])

Cut the right tail of the estimated scaled intensities by the threshold.

estimate_scale_factor_per_hkl_asu_from_reference(...)

Calculate the estimated scale factor per hkl_asu.

fit_wavelength_scale_factor_polynomial(...)

Fit the wavelength scale factor polynomial.

get_reference_intensities(binned, ...)

Find the reference intensities by the wavelength.

get_reference_wavelength(binned, ...)

Select the reference wavelength.

get_wavelength_binned(mtz_da, wavelength_bins)

Bin the whole dataset by wavelength(LAMBDA).

polyval_wavelength(wavelength, *, out_unit, ...)

Polynomial helper for fitting.

Classes

FittingResult(fitting_func, params, ...)

Result of the fitting process.