Skip to content

relax#

Spin-relaxation analysis: fit \(T_1\)/\(T_2\) rates and invert for correlation time \(\tau_c\).

correlation_times #

correlation_times(
    omega0: float,
    r1_by_temp: ndarray,
    nucleus: str = "1H",
    temperatures_ascending: bool = True,
) -> ndarray | None

Invert a temperature series of \(R_1 = 1/T_1\) for \(\tau_c\) (s); None if no interior maximum.

omega0 is the Larmor angular frequency in rad/s (\(2\pi \times \text{SFO1}_{\text{Hz}}\)).

fit_t1 #

fit_t1(
    delays_s: ndarray, intensities: ndarray
) -> float | None

Fit \(T_1\) (seconds) from a single inversion-recovery curve, or None if the fit fails.

fit_t2 #

fit_t2(
    delays_s: ndarray, intensities: ndarray
) -> float | None

Fit \(T_2\) (seconds) from a single CPMG decay curve, or None if the fit fails.

has_t1_minimum #

has_t1_minimum(r1_by_temp: ndarray) -> bool

Return True if the temperature-ordered \(R_1\) series has an interior maximum (\(T_1\) minimum).

peak_windows #

peak_windows(
    spec: Spectrum2D,
    min_height_ratio: float = 0.08,
    kind: str = "T1",
) -> list[tuple[float, float]]

Return one (low, high) chemical-shift window per detected peak, in x-axis units.

relaxation_rate #

relaxation_rate(
    spec: Spectrum2D, lo: float, hi: float, kind: str = "T1"
) -> float

Fit the relaxation rate \(R = 1/T\) (s⁻¹) for the peak in window [lo, hi], or NaN if the fit fails.

relaxation_spectrum #

relaxation_spectrum(
    signal: Signal2D, spectrum: Spectrum2D | None = None
) -> Spectrum2D

Build the 2D relaxometry spectrum, with relaxation delays on the indirect (f1) axis.

spectral_density #

spectral_density(x: ndarray | float) -> ndarray

Evaluate the \(^1\)H dipolar spectral density \(g(x)\) at \(x = \omega_0\,\tau_c\), elementwise.

t1_minimum_constant #

t1_minimum_constant() -> float

Return the dimensionless constant \(x^{*} = \omega_0\,\tau_c \approx 0.616\) at the \(T_1\) minimum.