as2_python_api.tools package

Submodules

as2_python_api.tools.utils module

Different utility methods

as2_python_api.tools.utils.euler_from_quaternion(_x: float, _y: float, _z: float, _w: float) Tuple[float, float, float][source]

Convert a quaternion into euler angles (roll, pitch, yaw) roll is rotation around _x in radians (counterclockwise) pitch is rotation around _y in radians (counterclockwise) yaw is rotation around _z in radians (counterclockwise)

as2_python_api.tools.utils.find_spec_in_envvar(module_name: str) ModuleSpec[source]

Search for ModuleSpec in aerostack2 modules path environment variable

as2_python_api.tools.utils.find_spec_in_pkg(module_name: str) ModuleSpec[source]

Search for ModuleSpec in as2_python_api package default modules folder

as2_python_api.tools.utils.get_class_from_module(module_name: str) ModuleBase[source]

Get class from module name source: https://docs.python.org/3.10/library/importlib.html#importing-programmatically

as2_python_api.tools.utils.get_module_call_signature(module_name: str) Signature[source]

get call method signature from given module name

Return type:

inspect.Signature

as2_python_api.tools.utils.path_to_list(path: Path) List[List[float]][source]

Converts path into list

Module contents