pyflightstream.run.geom_cli (provisional)¶
Generated from the docstrings at build time: every one of the 1 names in the __all__ of pyflightstream.run.geom_cli has an entry below. The names a guide or an example uses come first; the others follow under Advanced.
The pyfs-geom command line: run, loop, inspect and move the geometry pipeline.
Pipeline role: thin. Each verb parses its arguments, calls the entry of
:mod:pyflightstream.workspace.geometry_pipeline (or reads the pure configuration boundary of
:mod:pyflightstream.geometry), prints the record it returns as JSON and exits 0, 1 or 2.
run CONFIG --out DIR runs the stages S0 to S13 (--until ends earlier, --set
component.key=value overrides a value, --configuration and --variant choose what is
built). doe CONFIG SETS --out DIR runs one report per parameter set of SETS, a TOML
file with one [[sets]] table per set whose keys are the override paths, and continues
after a failed set. validate resolves the configuration and prints every value with its
source; configurations and stages list what a configuration and the pipeline hold;
schema, identify and check read a component record or an original IGES;
add-control-surface and split-symmetry edit a written IGES; iges-convert rewrites
IGES files as one IGES of B-spline faces, names kept.
Exit codes: 0 accepted, 1 a run failed at a stage (the report names the stage and the check),
2 an input is refused or the gmsh library cannot load, with the message on standard error,
3 incomplete: no check failed but a check of the stage table was not measured (a stage not
built), and the report lists each one in not_run. For doe the code is the worst of its
sets, refused over failed over incomplete over accepted.
Used in the guides¶
pyflightstream.run.geom_cli.main
¶
main(argv: list[str] | None = None) -> int
Run pyfs-geom; returns the exit code (0 accepted, 1 failed, 2 refused, 3 incomplete).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
argv
|
list of str
|
The command line without the program name; None reads |
None
|
Returns:
| Type | Description |
|---|---|
int
|
The exit code: 0 accepted, 1 failed, 2 refused, 3 incomplete. |
Examples:
>>> from pyflightstream.run.geom_cli import main
>>> main(["validate", "no-such-file.toml"])
...
2