|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Functions | |
| Tuple[np.ndarray, np.ndarray] | generate_pressure_profile (str profile_type, float start_value, float end_value, float duration, int n_steps, **params) |
| Tuple[np.ndarray, np.ndarray] engine.pipeline.time_series.generate_pressure_profile | ( | str | profile_type, |
| float | start_value, | ||
| float | end_value, | ||
| float | duration, | ||
| int | n_steps, | ||
| ** | params ) |
Generate a pressure profile over time using analytic functions.
Parameters
----------
profile_type : str
One of "linear", "exponential", or "power".
start_value : float
Initial pressure value (arbitrary units – caller handles unit conversion).
end_value : float
Final pressure value at t = duration.
duration : float
Total time span in seconds.
n_steps : int
Number of discrete samples (>= 2).
params : dict
Additional shape parameters. Supported keys:
- decay_constant (exponential): positive float controlling curvature (default 3.0)
- power (power): exponent > 0 (default 2.0)
Returns
-------
times : np.ndarray
Array of monotonically increasing time values in seconds (size n_steps).
values : np.ndarray
Pressure values corresponding to `times` (same units as inputs).
Definition at line 8 of file time_series.py.
References max.