plot_ipr

mqed.plotting.plot_ipr._load_ipr_and_time(h5_path: Path, *, nmol_hint: int | None = None) tuple[np.ndarray, np.ndarray, dict, np.ndarray | None][source]
Load t_ps and IPR(t). Tries, in order:
  1. top-level ‘ipr_mean’ (and optional ‘ipr_std’)

  2. expectations[‘IPR_site’]

  3. derive from expectations[‘Excitation_Populations’] (renormalized to excited manifold)

Returns:

(T,) ipr : (T,) meta : dict ipr_std : (T,) or None

Return type:

t_ps

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

Build a boolean mask for choosing an x-range (time window).

Examples

  • x_index_range: [0, 100] -> selects indices 0..100 (first 101 points)

  • x_range_ps: [0.0, 15] -> selects times between 0.0 and 15 ps (inclusive)