Skip to content

pyflightstream.script.rotor_vocabulary (stable)

Generated from the docstrings at build time: every one of the 7 names in the __all__ of pyflightstream.script.rotor_vocabulary has an entry below. The names a guide or an example uses come first; the others follow under Advanced.

The per-build rotor vocabulary, decided in one place (GOAL-023, RPT-049, RPT-051).

A rotor is written as a ROTARY motion with its axis and speed on the builds that document those commands, as a EUCLIDEAN motion with an angular velocity and the rotor mark on the builds that document that vocabulary instead, and as a EUCLIDEAN motion with an angular velocity and NO rotor mark on the build that documents the angular velocity and has no scripted rotor mark (26.100). :func:pyflightstream.script.helpers.rotary_motion writes by :func:euclidean_rotor and :func:unmarked_euclidean_rotor, and cases.workflows derives coverage from the same two, so the decision cannot be made two ways.

It decides WHICH vocabulary a rotor is written in, never WHETHER a build runs a rotor: 25.000 documents the whole Euclidean rotor and no CREATE_NEW_MOTION, so the predicate holds there and the workflow still refuses the build.

Advanced

pyflightstream.script.rotor_vocabulary.EUCLIDEAN_ROTOR_COMMANDS module-attribute

EUCLIDEAN_ROTOR_COMMANDS = (
    "SET_MOTION_ANGULAR_VELOCITY",
    "SET_MOTION_IS_ROTOR",
)

pyflightstream.script.rotor_vocabulary.EUCLIDEAN_ROTOR_UNIT module-attribute

EUCLIDEAN_ROTOR_UNIT = 'rad/s'

pyflightstream.script.rotor_vocabulary.ROTARY_ROTOR_COMMANDS module-attribute

ROTARY_ROTOR_COMMANDS = (
    "SET_MOTION_ROTOR_AXIS",
    "SET_MOTION_ROTOR_RPM",
)

pyflightstream.script.rotor_vocabulary.UNMARKED_EUCLIDEAN_ROTOR_COMMANDS module-attribute

UNMARKED_EUCLIDEAN_ROTOR_COMMANDS = (
    "SET_MOTION_ANGULAR_VELOCITY",
)

pyflightstream.script.rotor_vocabulary.UNMARKED_EUCLIDEAN_ROTOR_UNIT module-attribute

UNMARKED_EUCLIDEAN_ROTOR_UNIT = 'rev/min'

pyflightstream.script.rotor_vocabulary.euclidean_rotor

euclidean_rotor(view: VersionView) -> bool

Return whether a rotor is written as a marked Euclidean motion on view's build.

THE ONE PLACE THE SUBSTITUTION IS DECIDED, with :func:unmarked_euclidean_rotor: :func:pyflightstream.script.helpers.rotary_motion writes by it and cases.workflows derives coverage from it. True when the build documents no rotary rotor speed and documents the whole Euclidean rotor (:data:EUCLIDEAN_ROTOR_COMMANDS).

Parameters:

Name Type Description Default
view VersionView

The command view of the script's build.

required

Returns:

Type Description
bool

True when the build documents no rotary rotor speed and every command of :data:EUCLIDEAN_ROTOR_COMMANDS.

pyflightstream.script.rotor_vocabulary.unmarked_euclidean_rotor

unmarked_euclidean_rotor(view: VersionView) -> bool

Return whether a rotor is written as a Euclidean motion WITHOUT the rotor mark.

True when the build documents no rotary rotor speed, documents the angular velocity, and does not carry SET_MOTION_IS_ROTOR. 26.100 is that build: its solver does not recognize the rotor mark its manual prints (RPT-049). The motion is written with no mark, so the solver is never told the motion is a rotor (RPT-051). :func:euclidean_rotor and this function never both hold on one build.

Parameters:

Name Type Description Default
view VersionView

The command view of the script's build.

required

Returns:

Type Description
bool

True when the build documents no rotary rotor speed, documents the angular velocity, and carries no SET_MOTION_IS_ROTOR.