pyflightstream.qa.physics (stable)¶
Generated from the docstrings at build time: every one of the 24 names in the __all__ of pyflightstream.qa.physics has an entry below. The names a guide or an example uses come first; the others follow under Advanced.
Tier 3 physics regression: the judge, the reductions, the references, the report.
Pipeline role: the physics cases are judged here. A case is a set of
metrics reduced from solved points (:func:phy01_metrics,
:func:phy02_metrics, :func:phy05_metrics, :func:phy06_metrics),
compared against a committed reference inside WARN and FAIL bands
(:func:compare_metrics), and written as a dated PHY-* report pair
under reports/physics/ (:func:write_physics_report). References
live as package data in qa/references/ and change only through
:func:update_reference, which demands a reason string; a reference
update never shares a commit with code changes (SAD Section 11).
WHERE THE CASES ARE STATED, (PFS-2031.17): as rows of a run matrix in a campaign
workspace, built by the package's own workflows, and nowhere in Python.
tests/tier3_licensed/matriz_physics.fs states them: row 5001 is
PHY-01, 5002 and 5003 are PHY-02, 5005 is PHY-05 and 5006 is PHY-06, each
row's preset written to emit exactly the lines the hand-built script
emitted. :mod:pyflightstream.qa.matrix is the driver that runs that
matrix through the run layer, reduces the records with the functions
here and writes the report; pyfs-qa physics --workspace <root> is
its command line. in legacy releases this module built every case as a script
in Python (build_phy01_script and its siblings) and ran it itself;
those builders retired with the decision, because two builders of one
case drift apart and the diff of their scripts was the only thing that
said so (RPT-042 is the measurement that the workflow reproduces every
coefficient inside the reference bands).
What a case measures, kept here because the reductions carry it. PHY-01 is the wing polar of a synthetic NACA 0012 rectangular wing of aspect ratio 8: the total lift coefficient per angle, the lift slope and the induced drag at the reference angle. Physical anchor: finite-wing theory puts the lift slope near 2*pi / (1 + 2/AR) = 5.0 per radian, so a grossly wrong slope points at a broken import or symmetry setup rather than at solver drift. PHY-02 is the symmetry equivalence: the open-root half wing under MIRROR symmetry with symmetry loads enabled must reproduce the full-span coefficients on the same full planform reference area. PHY-05 is the rigid unsteady periodic propeller after a revolution and a half. PHY-06 is the time march of the static wing against its own steady polar.
The SMI class (FR-27) is the local-only pair over the research simulation files, whose geometry never enters Git (CONTRIBUTING.md invariant 5). It keeps its script builder, its metric specifications and its references here, and has no runner: it runs again when it is a row of a private workspace, which is the next release's work.
Advanced¶
pyflightstream.qa.physics.CaseReference
dataclass
¶
CaseReference(
case_id: str,
fs_version_basis: str,
updated: str,
reason: str,
metrics: dict[str, ReferenceBand],
)
The committed reference of one physics case.
Attributes:
| Name | Type | Description |
|---|---|---|
case_id |
str
|
Case identifier ( |
fs_version_basis |
str
|
Canonical FlightStream version the reference values came from. |
updated |
str
|
ISO date of the last reference update. |
reason |
str
|
The reason string recorded by :func: |
metrics |
dict of str to ReferenceBand
|
Reference value and bands per metric. |
pyflightstream.qa.physics.CaseResult
dataclass
¶
CaseResult(
case_id: str,
title: str,
geometry: str,
points: tuple[PointResult, ...] = (),
metrics: dict[str, float] = dict(),
verdicts: dict[str, Verdict] = dict(),
reference: CaseReference | None = None,
error: str | None = None,
)
Everything one physics case produced in one run.
Attributes:
| Name | Type | Description |
|---|---|---|
case_id, title |
str
|
Case identity. |
geometry |
str
|
One-line description of the generated geometry. |
points |
tuple of PointResult
|
Solved sweep points, in sweep order. |
metrics |
dict of str to float
|
Measured metric values. |
verdicts |
dict of str to Verdict
|
Judgment per metric ( |
reference |
CaseReference or None
|
The stored reference used, when one exists. |
error |
str or None
|
Failure description when the case aborted; a failed case reports instead of raising so one broken case cannot hide the others' evidence. |
pyflightstream.qa.physics.MetricSpec
dataclass
¶
MetricSpec(
name: str,
description: str,
kind: str = "rel",
warn: float = 0.02,
fail: float = 0.05,
)
Declaration of one case metric and its default tolerance bands.
Attributes:
| Name | Type | Description |
|---|---|---|
name |
str
|
Metric identifier, for example |
description |
str
|
What the metric measures, with units where applicable. |
kind |
str
|
|
warn |
float
|
Default WARN half width used when seeding a reference. |
fail |
float
|
Default FAIL half width; must exceed |
pyflightstream.qa.physics.PHYSICS_CASES
module-attribute
¶
PHYSICS_CASES: dict[str, PhysicsCase] = {
"PHY-01": PhysicsCase(
case_id="PHY-01",
title="NACA wing polar (synthetic NACA 0012, AR 8)",
metric_specs=(
MetricSpec(
"CL_a0",
"total CL at 0 deg; 0 by symmetry, so the band is absolute",
kind="abs",
warn=0.005,
fail=0.02,
),
MetricSpec(
"CL_a2", "total CL at 2 deg incidence"
),
MetricSpec(
"CL_a4", "total CL at 4 deg incidence"
),
MetricSpec(
"CL_a6", "total CL at 6 deg incidence"
),
MetricSpec(
"CL_slope_per_rad",
"least-squares lift slope over the sweep, 1/rad (finite-wing anchor 2*pi/(1 + 2/AR) = 5.0 for AR 8)",
),
MetricSpec(
"CDi_a4",
"induced drag coefficient at 4 deg",
warn=0.05,
fail=0.15,
),
),
pressure_metric_specs=(
MetricSpec(
"CDp_a4",
"pressure drag coefficient at 4 deg",
warn=0.05,
fail=0.15,
),
),
),
"PHY-02": PhysicsCase(
case_id="PHY-02",
title="Half versus full symmetry equivalence (NACA 0012, AR 8)",
metric_specs=(
MetricSpec(
"CL_full_a4",
"total CL of the full-span baseline at 4 deg",
),
MetricSpec(
"CL_half_a4",
"total CL of the mirrored half model at 4 deg, symmetry loads enabled",
),
MetricSpec(
"delta_CL_a4",
"CL(half) - CL(full) at 4 deg; zero in exact equivalence",
kind="abs",
warn=0.005,
fail=0.02,
),
MetricSpec(
"delta_CDi_a4",
"CDi(half) - CDi(full) at 4 deg; zero in exact equivalence",
kind="abs",
warn=0.0005,
fail=0.002,
),
),
pressure_metric_specs=(
MetricSpec(
"delta_CDp_a4",
"CDp(half) - CDp(full) pressure drag at 4 deg",
kind="abs",
warn=0.0005,
fail=0.002,
),
),
),
"PHY-05": PhysicsCase(
case_id="PHY-05",
title="Rigid unsteady periodic propeller (generic BladeSpec blade)",
metric_specs=(
MetricSpec(
"CL",
"total CL of the blade sector at the final step; near zero as the loads balance around the disc, so the band is absolute",
kind="abs",
warn=0.002,
fail=0.01,
),
MetricSpec(
"CDi",
"total axial force coefficient (negative: net thrust) at the final of 54 steps",
warn=0.01,
fail=0.03,
),
MetricSpec(
"CDo",
"total viscous drag coefficient at the final step; near zero",
kind="abs",
warn=0.0005,
fail=0.002,
),
MetricSpec(
"CMy",
"total pitching moment coefficient at the final step",
warn=0.01,
fail=0.03,
),
),
minimum_version="26.120",
pressure_metric_specs=(
MetricSpec(
"CDp",
"pressure drag coefficient at the final step",
warn=0.01,
fail=0.03,
),
MetricSpec(
"CDv",
"viscous drag coefficient at the final step; near zero",
kind="abs",
warn=0.0005,
fail=0.002,
),
),
),
"PHY-06": PhysicsCase(
case_id="PHY-06",
title="Steady versus unsteady polar equivalence (NACA 0012, AR 8)",
metric_specs=_phy06_metric_specs(),
minimum_version="26.120",
),
}
pyflightstream.qa.physics.PhysicsCase
dataclass
¶
PhysicsCase(
case_id: str,
title: str,
metric_specs: tuple[MetricSpec, ...],
minimum_version: str | None = None,
pressure_metric_specs: tuple[MetricSpec, ...] = (),
)
One entry of the physics case registry.
Attributes:
| Name | Type | Description |
|---|---|---|
case_id, title |
str
|
Identity shown in reports. |
metric_specs |
tuple of MetricSpec
|
Declared metrics with the default bands used at reference seeding time. A case is a workspace matrix row. :mod: |
minimum_version |
(str, optional)
|
Earliest canonical identifier this case's command set has evidence for. None means every registered version. A minimum build selects every registered build at or above the threshold, including later registrations. |
specs_by_name
property
¶
specs_by_name: dict[str, MetricSpec]
The metric specifications keyed by metric name.
specs_for_version
¶
specs_for_version(version: str) -> dict[str, MetricSpec]
Return specs for one drag vocabulary, preserving the distinct quantities.
supports
¶
supports(canonical: str) -> bool
Whether the case's command set has evidence for canonical.
minimum_version is None for cases whose commands are
evidenced on every registered version; otherwise the case
supports that build and every build after it.
"After" is read from the position in the registry's ordered list of builds, never from the identifier, because the identifier does not encode release order. The 25 series was registered after the 26 series but is older, so the list holds it at the front, before 26.100; comparing the identifiers as strings gives the same answer for those two, and a build whose identifier does not sort in release order would still be placed by the list.
pyflightstream.qa.physics.PhysicsEnvironmentError
¶
Bases: PyflightstreamError, RuntimeError
The physics run cannot start as configured.
Raised before any row runs: a workspace without the physics matrix, rows naming two builds, or a row naming a case the registry does not know must surface immediately, not after minutes of solver time.
pyflightstream.qa.physics.PhysicsRun
dataclass
¶
PhysicsRun(
version: str,
fs_exe_name: str,
package_version: str,
results: tuple[CaseResult, ...],
solver_identity: tuple[str, ...] = (),
fs_exe_sha256: str | None = None,
executor: ExecutorRecord | None = None,
source: str | None = None,
)
One complete Tier 3 physics run on a licensed machine.
verdict_counts
¶
verdict_counts() -> dict[str, int]
Count metric verdicts over every case, for the summary line.
aborted_count
¶
aborted_count() -> int
Count the cases that aborted: they carry no verdict, so no verdict count holds them.
inapplicable_count
¶
inapplicable_count() -> int
Count the cases the selected build left out, reported as INAPPLICABLE with a reason.
ran_count
¶
ran_count() -> int
Count the cases the run covers that were not left out as INAPPLICABLE.
pyflightstream.qa.physics.PointResult
dataclass
¶
PointResult(
alpha_deg: float,
total: dict[str, float],
iterations: int,
converged: bool,
label: str = "",
minimum_cp: float | None = None,
)
One solved sweep point of a physics case.
Attributes:
| Name | Type | Description |
|---|---|---|
alpha_deg |
float
|
Angle of attack in degrees, positive nose up. |
total |
dict of str to float
|
The Total coefficient row of the loads spreadsheet (CL, CDi, and companions), analysis-frame coefficients. |
iterations |
int
|
Solver iteration counter at export. |
converged |
bool
|
Whether the solver stopped below its iteration limit (the steady-mode convergence signal of the M2 assessor). |
label |
str
|
Point identifier shown in reports; distinguishes points that share an angle, such as the full and half models of PHY-02. Empty defaults to the angle itself. |
pyflightstream.qa.physics.ReferenceBand
dataclass
¶
ReferenceBand(
value: float, warn: float, fail: float, kind: str
)
Stored reference value of one metric with its tolerance bands.
Attributes mirror :class:MetricSpec bands; value is the
accepted metric value the bands center on.
pyflightstream.qa.physics.SMI_CASES
module-attribute
¶
SMI_CASES: dict[str, PhysicsCase] = {
"SMI-01": _smi_case(
"SMI-01",
"SMI isolated body (28_B, smallest corpus file)",
band_kind="abs",
),
"SMI-02": _smi_case(
"SMI-02",
"SMI full configuration (31_WBH_IH0, wing-body-tail)",
band_kind="rel",
),
}
pyflightstream.qa.physics.Verdict
¶
Bases: StrEnum
Judgment of one measured metric against its stored reference.
PASS: inside the WARN band. WARN: outside WARN but inside
FAIL; the metric moved and deserves triage, the suite keeps going.
FAIL: outside the FAIL band; a physics regression, a database
error, or a stale reference (the triage of the run-physics skill).
NO_REFERENCE: no stored reference yet; the measured value is
reported so :func:update_reference can seed one.
pyflightstream.qa.physics.build_smi_script
¶
build_smi_script(
version: str,
fsm_path: str | Path,
loads_name: str,
log_name: str,
) -> Script
Build the one-point script an SMI drift case runs.
Opens the local simulation file and applies the minimal steady setup the M2 pipeline shaped and the M3 preludes proved on this corpus: constant free stream, sea-level ISA through FLUID_PROPERTIES (AIR_ALTITUDE is broken on 26.120), steady incompressible initialization over every boundary, and a converged solve at the fixed comparison point.
THE SCRIPT PUTS NO BOUNDARY ON THE VORTICITY INDUCED-DRAG LIST (PFS-2006.02.01). It used to select every boundary, bodies included, and the local cases' stored coefficients were made with that form. Measured on 26.124 build 8172026, omitting the selection raises CDi by 0.0797 for SMI-01 and 0.1579 for SMI-02, and leaves CL and the moments unchanged at the printed 0.0001, so the references moved with it (reports/PFS-2006.02.01_reference-candidates_2026-10-16.md).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
version
|
str
|
Target FlightStream version, canonical identifier (26.120); a vendor release name works only where it names exactly one registered build. |
required |
fsm_path
|
str or Path
|
Local .fsm file; must be absolute (the solver runs inside the case scratch directory). |
required |
loads_name
|
str
|
Output file names, written into the working directory. |
required |
log_name
|
str
|
Output file names, written into the working directory. |
required |
Returns:
| Type | Description |
|---|---|
Script
|
The validated script, ready to render. |
Raises:
| Type | Description |
|---|---|
QaEvidenceError
|
When |
pyflightstream.qa.physics.case_table
¶
case_table(
*, include_smi: bool = False
) -> list[dict[str, str | int]]
Return the Tier 3 registry as a table, one line per case id.
Formalizes the test-matrix policy: every physics validation is a
matrix line with a numeric id (PHY-NN for the shareable class,
SMI-NN for the local-geometry class). The registry itself is
that matrix; this view makes it inspectable, without running
anything, from Python or from pyfs-qa cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
include_smi
|
(bool, keyword - only)
|
Include the SMI class lines; like the runs themselves, they never appear implicitly (CONTRIBUTING.md invariant 5). |
False
|
Returns:
| Type | Description |
|---|---|
list of dict
|
One mapping per registered case, in registry order, keyed
THE KEY WAS The gate renders as a minimum for the same reason the field became one: a list here is a list somebody has to extend by hand, and a reader comparing it against their own build learns nothing about a build registered after the list was written. |
pyflightstream.qa.physics.compare_metrics
¶
compare_metrics(
measured: dict[str, float],
reference: CaseReference | None,
) -> dict[str, Verdict]
Judge every measured metric against the stored reference bands.
A metric missing from the reference (new metric, old reference)
judges NO_REFERENCE rather than guessing a band. A reference
metric the run did not produce judges FAIL: part of the
reference went unread, and that is not a pass.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
measured
|
dict of str to float
|
Metric name to measured value. |
required |
reference
|
CaseReference or None
|
The case's stored reference; None before the first seeding. |
required |
Returns:
| Type | Description |
|---|---|
dict of str to Verdict
|
Metric name to its verdict; |
pyflightstream.qa.physics.load_reference
¶
load_reference(
case_id: str,
references_dir: str | Path | None = None,
*,
fs_version: str | None = None,
) -> CaseReference | None
Load the committed reference of one case, when it exists.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
case_id
|
str
|
Case identifier, for example |
required |
references_dir
|
str or Path
|
Alternative directory, used by tests; defaults to the package
data directory |
None
|
fs_version
|
str
|
Build whose reference to read. 26.125 uses the independent pressure-drag reference directory; no induced-drag reference is substituted. |
None
|
Returns:
| Type | Description |
|---|---|
CaseReference or None
|
The stored reference, or None before the first seeding. |
Raises:
| Type | Description |
|---|---|
QaEvidenceError
|
If the file exists and does not carry the physics reference schema, or
carries the reference of another case than |
pyflightstream.qa.physics.phy01_metrics
¶
phy01_metrics(
points: list[PointResult],
) -> dict[str, float]
Reduce the PHY-01 sweep points to the case metrics.
The lift slope comes from a least-squares line over the whole sweep, in per-radian units so it lands next to the finite-wing anchor 2*pi / (1 + 2/AR).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
points
|
list of PointResult
|
The PHY-01 sweep's points. |
required |
Returns:
| Type | Description |
|---|---|
dict of str to float
|
Metric name to value. |
Raises:
| Type | Description |
|---|---|
QaEvidenceError
|
When the sweep holds fewer than two angles of attack, or no 4 deg point. |
pyflightstream.qa.physics.phy02_metrics
¶
phy02_metrics(
full: PointResult, half: PointResult
) -> dict[str, float]
Reduce the PHY-02 pair to the equivalence metrics.
Both models use the full planform reference area, so the mirrored half must reproduce the full-span coefficients; the deltas are the physics content and sit near zero, hence absolute bands.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
full
|
PointResult
|
The full-span model's point. |
required |
half
|
PointResult
|
The mirrored half model's point. |
required |
Returns:
| Type | Description |
|---|---|
dict of str to float
|
The full and half lift coefficients and their deltas, by metric name. |
pyflightstream.qa.physics.phy05_metrics
¶
phy05_metrics(point: PointResult) -> dict[str, float]
Reduce the PHY-05 final step to the four aggregated coefficients.
The propeller's evidence is the Total row at the last of its 54 steps: the blade sector's lift (near zero, the loads balance around the disc), the axial force coefficient (negative, a net thrust), the viscous drag and the pitching moment. The tier-3 test carried this selection inline in legacy releases; it lives here so the driver and the test reduce the same way.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
point
|
PointResult
|
The PHY-05 run's final step. |
required |
Returns:
| Type | Description |
|---|---|
dict of str to float
|
The four aggregated coefficients of the Total row, by name. |
pyflightstream.qa.physics.phy06_metrics
¶
phy06_metrics(
steady: list[PointResult], unsteady: list[PointResult]
) -> dict[str, float]
Reduce the two polars of PHY-06 to the equivalence metrics.
Per angle, the unsteady-final minus steady deltas of CL, CD (CDi +
CDo; the loads Total row carries no combined column) and CMy, then
the least-squares lift and pitching-moment slopes of each polar in
per-radian units, which is what :func:_phy06_metric_specs
declares. The two polars are matched BY ANGLE, not by position: a
march at an angle the steady polar did not solve is refused rather
than paired with whatever sat at the same index.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
steady
|
list of PointResult
|
The steady polar, the PHY-01 row's points in the workspace. |
required |
unsteady
|
list of PointResult
|
The unsteady-final polar, the PHY-06 row's points, at the same angles. |
required |
Returns:
| Type | Description |
|---|---|
dict of str to float
|
Metric name to value. |
Raises:
| Type | Description |
|---|---|
QaEvidenceError
|
When the two polars do not solve the same angles. A |
pyflightstream.qa.physics.physics_report_paths
¶
physics_report_paths(
out_dir: str | Path,
*,
version: str,
date: str | None = None,
label: str | None = None,
) -> tuple[Path, Path]
Return where a physics report for one build WOULD be written.
The counterpart of :func:pyflightstream.qa.compat.compat_report_paths for the PHY
series. It computes report paths so callers can refuse an existing report before spending
a licensed solver seat.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
out_dir
|
str or Path
|
Target directory, normally |
required |
version
|
(str, keyword - only)
|
Version identifier, as :attr: |
required |
date
|
(str, optional, keyword - only)
|
ISO date stamped into the stem; defaults to today. A caller that
will also write the report should resolve the date once and pass
it here AND to :func: |
None
|
label
|
str
|
Stem suffix distinguishing several reports on one day. |
None
|
Returns:
| Type | Description |
|---|---|
tuple of Path
|
The YAML path and the Markdown path, in that order. Neither is created and the directory is not made. |
Examples:
Ask before spending a licensed seat, which is the whole reason this function exists:
>>> from pyflightstream.qa import physics_report_paths, refuse_existing_report
>>> yaml_path, md_path = physics_report_paths(
... "reports/physics", version="26.123", date="2026-08-17", label="example"
... )
>>> yaml_path.name
'PHY-26123_2026-08-17_example.yaml'
>>> refuse_existing_report(yaml_path, md_path)
Nothing is written by either call. The refusal fires only for a stem that already exists, so a label that names an existing report is refused.
pyflightstream.qa.physics.registered_cases
¶
registered_cases(
*, include_smi: bool = False
) -> dict[str, PhysicsCase]
Return the case registry, optionally including the SMI class.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
include_smi
|
(bool, keyword - only)
|
Include the SMI class, whose geometry is local and never
committed. The SMI cases join only when the caller can
provide that root; they never run implicitly (CONTRIBUTING.md
invariant 5). Keyword-only : a bare |
False
|
Returns:
| Type | Description |
|---|---|
dict of str to PhysicsCase
|
The registry, keyed by case id, in registry order. |
pyflightstream.qa.physics.smi_metrics
¶
smi_metrics(point: PointResult) -> dict[str, float]
Reduce one SMI point to its aggregated coefficient metrics.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
point
|
PointResult
|
The recorded point, as :func: |
required |
Returns:
| Type | Description |
|---|---|
dict of str to float
|
The aggregated coefficients of the Total row, by name. |
pyflightstream.qa.physics.update_reference
¶
update_reference(
case_id: str,
report_path: str | Path,
reason: str,
*,
references_dir: str | Path | None = None,
date: str | None = None,
repo_root: str | Path = ".",
drop: Iterable[str] = (),
) -> Path
Update (or seed) one case reference from a committed physics report.
The only write path into qa/references/ (SAD Section 11): it
demands a non-empty reason string, copies the measured metric
values from the report, and keeps the curated bands of an existing
reference; metrics new to the reference receive the default bands
of the case's metric specifications. A reference update never
shares a commit with code changes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
case_id
|
str
|
Case whose reference to update. |
required |
report_path
|
str or Path
|
Committed physics report YAML carrying the measured values. |
required |
reason
|
str
|
Why the reference moves (initial seeding, solver change accepted after triage, case redefinition, ...); recorded in the reference file. |
required |
references_dir
|
str or Path
|
Alternative directory, used by tests. |
None
|
date
|
str
|
ISO date recorded as the update date; defaults to today. |
None
|
repo_root
|
str or Path
|
The repository the report is committed in; the reference records the report's path relative to it, because a reference is committed and a machine's path is not. |
'.'
|
drop
|
iterable of str
|
Metrics of the existing reference to remove deliberately. A reference metric the report does not carry is otherwise refused, because replacing the file would lose its value and its curated bands without a word. |
()
|
Returns:
| Type | Description |
|---|---|
Path
|
The written reference file. |
Raises:
| Type | Description |
|---|---|
QaEvidenceError
|
When the reason is empty, the date is not spelled
|
pyflightstream.qa.physics.write_physics_report
¶
write_physics_report(
run: PhysicsRun,
out_dir: str | Path,
*,
date: str | None = None,
label: str | None = None,
) -> tuple[Path, Path]
Write one physics run as a report pair (YAML plus Markdown).
Same evidence discipline as the compat reports: the stem is
PHY-<version digits>_<date> plus the optional label, and an
existing report is never overwritten. The YAML key fs_exe_sha256
keeps its name and never holds a digest: it carries the sentence
withheld; build <build> when the run recorded one, or the words
not recorded when none was taken (FR-1153).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
run
|
PhysicsRun
|
The run to record. |
required |
out_dir
|
str or Path
|
Target directory, normally |
required |
date
|
str
|
ISO date stamped into the report; defaults to today. |
None
|
label
|
str
|
Stem suffix distinguishing several reports on one day. |
None
|
Returns:
| Type | Description |
|---|---|
tuple of Path
|
The YAML path and the Markdown path, in that order. |
Raises:
| Type | Description |
|---|---|
FileExistsError
|
When a report with the same stem already exists. |
QaEvidenceError
|
When the date is not spelled |
(UnknownVersionError, AmbiguousVersionAliasError)
|
When the run's version is not a registered build, or is a
vendor release name shared by several. The stem's build key is resolved through the
registry, so
these reach a direct Python caller where they did not before.
|