io¶
Serialization module for the expertsystem
.
The io
module provides tools to export or import objects from the
particle
, reaction
and amplitude
modules to and from
disk, so that they can be used by external packages, or just to store (cache)
the state of the system.
-
convert_to_dot
(instance: object) → str[source]¶ Convert a
object
to a DOT languagestr
.Only works for objects that can be represented as a graph, particularly a
StateTransitionGraph
or alist
ofStateTransitionGraph
instances.See also
-
load_amplitude_model
(filename: str) → expertsystem.amplitude.model.AmplitudeModel[source]¶
-
load_particle_collection
(filename: str) → expertsystem.particle.ParticleCollection[source]¶
-
load_pdg
() → expertsystem.particle.ParticleCollection[source]¶ Create a
ParticleCollection
with all entries from the PDG.PDG info is imported from the scikit-hep/particle package.