emout.article module¶
Article data recording and replay support.
This module keeps figure scripts reproducible by recording the minimum grid
data consumed by Data.plot() and Data.to_numpy(), then replaying
those same slices without requiring the original EMSES output files.
- class emout.article.ArticleConfig(mode, records_path, article_name, source_name, archive_format)[source]¶
Bases:
objectResolved article mode configuration.
- class emout.article.ArticleMeanSelection(replay, field, selectors, source_shape)[source]¶
Bases:
objectReplay selection for a recorded time-mean field.
- property boundaries¶
- property boundary¶
- property inp¶
- plot_surfaces(surfaces, *, ax=None, use_si=True, vmin=None, vmax=None, **kwargs)[source]¶
Plot recorded bounded mean surface data using the local path.
- property unit¶
- class emout.article.ArticleRecorder(source_path, config)[source]¶
Bases:
objectPersist article data records for one
emout.Emoutsource.- copy_source_files(input_directory, output_directory)[source]¶
Copy small source-side files useful for article replay.
- Return type:
- class emout.article.ArticleReplayEmout(source_path, config)[source]¶
Bases:
objectReplay proxy returned by
Emout(..., article_mode='replay').- property backtrace¶
Backtrace is not part of article replay bundles.
- property boundaries¶
Return boundary meshes reconstructed from the recorded input file.
- property inp: InpFile | None¶
Return recorded input parameters.
When a recorded
plasma.tomlexists, this is the TOML-backedInpFilecompatibility view. Otherwise it is loaded from the recordedplasma.inp.
- is_valid()[source]¶
Return whether the replay bundle has the files required by its manifest.
- Return type:
- property toml¶
Return the recorded TOML configuration when available.
- property trace¶
Trace workflows are not part of article replay bundles.
- class emout.article.ArticleSelection(replay, field, selectors, source_shape)[source]¶
Bases:
objectReplay selection for a recorded field.
- mean(axis=None, dtype=None, out=None, keepdims=False)[source]¶
Return a recorded time-mean selection.
- class emout.article.ArticleSeries(replay, field)[source]¶
Bases:
objectLazy selector for one recorded field.
- emout.article.attach_recorder(obj, recorder, source_shape=None)[source]¶
Attach recorder recursively to grid data objects.
- Return type:
- emout.article.record_data_access(data, kind, kwargs=None)[source]¶
Record a data object when an article recorder is attached.
- Return type:
- emout.article.resolve_config(*, article_mode=None, article_records_path=None, records_path=None, article_name=None, article_source_name=None, article_archive=None)[source]¶
Resolve article settings from explicit arguments and environment.
- Return type:
- emout.article.resolve_existing_record_dir(source_path, config)[source]¶
Resolve a replay directory, falling back to a single matching article.
- Return type: