plot_msd

mqed.plotting.plot_msd._load_dx_and_time(h5_path: Path) tuple[numpy.ndarray, numpy.ndarray, dict][source]
Returns:

(T,) dx_nm: (T,) (mean if available; otherwise single-run Δx) meta: dict with info about what we loaded

Return type:

t_ps

Supports:
  • datasets: ‘dx_mean_nm’ (preferred), ‘dx_nm’, or expectations: X_shift, X_shift2 (compute Δx)

mqed.plotting.plot_msd._nn_msd_analytical(t_fs: numpy.ndarray, model: str, params: dict) numpy.ndarray[source]

Analytical MSD for nearest-neighbour chain models.

MSD = <(x-x0)^2> (second moment of displacement from initial site). Note: this is NOT the variance <(x-x0)^2> - <x-x0>^2.

mqed.plotting.plot_msd._select_x(t_ps: numpy.ndarray, cfg_ps) numpy.ndarray[source]

Return boolean mask for x selection by index or by time value (ps).