emout.core.io package¶
Submodules¶
emout.core.io.directory module¶
Directory inspection and input-file discovery for EMSES runs.
DirectoryInspector locates plasma.inp / plasma.toml,
resolves append-directory chains, and provides lazy access to parsed
input parameters and unit conversion objects.
- class emout.core.io.directory.DirectoryInspector(directory, append_directories=None, inpfilename='plasma.inp', input_path=None, output_directory=None)[source]¶
Bases:
objectDirectory discovery and input-file loading helper for Emout.
Provides
main_directory,append_directories,inp(InpFile), andunit(Units) to the facade layer.- property inp: InpFile | None¶
Return the parsed input parameter file.
- Returns:
Parsed
plasma.inpif loaded, otherwiseNone.- Return type:
InpFile or None
- is_valid()[source]¶
Check whether the simulation completed successfully.
Compare the last step in the
icurfile againstnstepfrom the input parameters.- Return type:
- read_icur_as_dataframe()[source]¶
Read the
icurdiagnostic file as a DataFrame.- Returns:
Table with step and per-species/per-body current columns.
- Return type:
- read_pbody_as_dataframe()[source]¶
Read the
pbodydiagnostic file as a DataFrame.- Returns:
Table with
stepand per-body particle-count columns.- Return type:
- property toml¶
Return the parsed TOML configuration.
Only available when
plasma.tomlexists. Provides attribute access to the structured TOML, e.g.data.toml.species[0].wp. Group defaults (group_id) are expanded into each entry.- Returns:
Parsed TOML data, or
Noneif unavailable.- Return type:
TomlData or None
emout.core.io.grid module¶
Grid data loading from EMSES HDF5 output files.
GridDataLoader resolves field names (including relocated fields
and vector components) and returns GridDataSeries
or VectorData instances.
- class emout.core.io.grid.GridDataLoader(dir_inspector, name2unit_map)[source]¶
Bases:
objectResolve EMSES field names and load grid data from HDF5 files.
Supports plain scalars, relocated electric/magnetic fields (
re*,rb*), and multi-axis vector fields ({name}xy,{name}xyz).
Module contents¶
I/O helpers for discovering and reading EMSES output files.