rgpycrumbs.eon.plot_dispatch¶
Object-aware eOn plot entry: nanobind types and ConFrame sequences.
Kind comes from the object type or an explicit kind= when only frames are
passed. Never sniffs mixed job directories for neb.con vs min.con.
`{versionadded} 1.10.4
`
Functions¶
|
Map obj to |
|
Library plot entry for live eOn objects or ConFrame sequences. |
Module Contents¶
- rgpycrumbs.eon.plot_dispatch.adapt_plot_source(obj: Any, *, kind: str | None = None) tuple[str, dict[str, Any]][source]¶
Map obj to
(command, payload)forrun_plot().Parameters¶
- obj
pyeonclient
NEB/NudgedElasticBand(after compute),Matterwith retained movie frames,MinModeSaddleSearchwith climb frames, a sequence of ConFrames, or a pre-built trajectory DTO.- kind
Required when obj is only a ConFrame sequence:
neb|min|saddle. Ignored when type dispatch is unambiguous.
Returns¶
- command, payload
command is
neb|min|saddle. payload is merged into settings (frames,trajectory, …).
- rgpycrumbs.eon.plot_dispatch.plot(obj: Any, *, kind: str | None = None, config: str | pathlib.Path | None = None, **overrides: Any) pathlib.Path | None[source]¶
Library plot entry for live eOn objects or ConFrame sequences.
Examples¶
>>> plot(neb, plot_type="profile", output_file="1d.pdf") # after compute >>> plot(frames, kind="neb", plot_type="profile", output_file="1d.pdf") >>> plot(matter, plot_type="profile", output="min.pdf") # after retain_frames