upxo.pxtal.fm_steel_3d.steps.steps_raw_export module
Raw Data Exports – Part I of the FM Steel 3D walkthrough.
Thin wrapper around upxo.pxtal.fm_steel_3d.raw_export – no reimplementation here. export_raw_data (and the functions it calls) only ever access app duck-typed via getattr(app, “_fm_base”, None) etc., so a notebook can hand it any small object exposing the same five attributes – that’s exactly what PipelineStages is for.
- class upxo.pxtal.fm_steel_3d.steps.steps_raw_export.PipelineStages(fm_base=None, fm_with_pags=None, fm_with_blocks=None, fm_with_orientations=None, fm_with_subblocks=None)[source]
Bases:
objectDuck-typed holder of the five pipeline-stage attributes, so upxo.pxtal.fm_steel_3d.raw_export.export_raw_data (and level_availability/collect_level_data) work unmodified from a notebook. Pass whichever stage objects exist so far; the rest default to None and are reported as unavailable/skipped.
- upxo.pxtal.fm_steel_3d.steps.steps_raw_export.export_raw(stages, out_dir, formats=('npy', 'pkl', 'npz'), levels=None, prefixes=None)[source]
Exports stages’ data to out_dir. See upxo.pxtal.fm_steel_3d.raw_export.export_raw_data for the full contract (per-level “<prefix>_lgi” arrays, per-level “<prefix>_orientations.pkl”, a shared bundle for everything else).
- Returns:
dict
- Return type:
{“out_dir”, “files”, “n_entries”, “levels_exported”, “levels_skipped”}