STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
core.py File Reference

Go to the source code of this file.

Classes

Namespaces

namespace  csv_to_eng
namespace  csv_to_eng.core

Functions

Tuple[int, int, Dict[str, int]] csv_to_eng.core._detect_column_indices (List[str] headers)
Tuple[Optional[str], Optional[str]] csv_to_eng.core._detect_units_from_header (str header)
bool csv_to_eng.core._is_comment_line (str line)
Optional[float] csv_to_eng.core._parse_numeric (str value)
Tuple[EngineMetadata, CurvePoints] csv_to_eng.core.read_csv_curve (Union[str, Path] path, Optional[str] time_units=None, Optional[str] thrust_units=None)
CurvePoints csv_to_eng.core.normalize_curve (CurvePoints points, int time_decimals=3, int thrust_decimals=1)
None csv_to_eng.core.write_eng (Union[str, Path] path, EngineMetadata metadata, CurvePoints points, int time_decimals=3, int thrust_decimals=1, bool include_comment=True)
None csv_to_eng.core.convert (Union[str, Path] csv_path, Union[str, Path] eng_path, Optional[str] name=None, Optional[float] diameter_mm=None, Optional[float] length_mm=None, Optional[str] delays=None, Optional[float] prop_mass_kg=None, Optional[float] total_mass_kg=None, Optional[str] manufacturer=None, Optional[str] time_units=None, Optional[str] thrust_units=None, int time_decimals=3, int thrust_decimals=1)

Variables

float csv_to_eng.core.LBF_TO_N = 4.4482216152605
float csv_to_eng.core.MS_TO_S = 0.001
dict csv_to_eng.core.TIME_COLUMNS = {"time", "t", "seconds", "time_s", "time_ms"}
dict csv_to_eng.core.THRUST_COLUMNS = {"thrust", "f", "force", "thrust_n", "thrust_lbf"}
dict csv_to_eng.core.METADATA_COLUMNS
 csv_to_eng.core.CurvePoints = List[Tuple[float, float]]