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

Go to the source code of this file.

Classes

class  backend.routers.timeseries.ProfileParams
class  backend.routers.timeseries.GenerateProfileRequest
class  backend.routers.timeseries.GenerateProfileResponse
class  backend.routers.timeseries.PressureSegment
class  backend.routers.timeseries.SegmentsRequest
class  backend.routers.timeseries.SegmentsResponse
class  backend.routers.timeseries.PreviewSegmentsRequest
class  backend.routers.timeseries.PreviewResponse

Namespaces

namespace  backend
namespace  backend.routers
namespace  backend.routers.timeseries

Functions

 backend.routers.timeseries.convert_numpy (obj)
 backend.routers.timeseries.compute_timeseries_results (runner, np.ndarray times, np.ndarray P_tank_O_psi, np.ndarray P_tank_F_psi, bool run_copv=True, Optional[np.ndarray] lox_mass_kg=None, Optional[np.ndarray] fuel_mass_kg=None)
Optional[float] backend.routers.timeseries._loaded_mass (config, str tank_attr)
Optional[dict] backend.routers.timeseries._compute_correlation_matrix (dict result_data)
Optional[dict] backend.routers.timeseries._run_copv_analysis (config, np.ndarray times, list mdot_O_kg_s, list mdot_F_kg_s, np.ndarray P_tank_O_psi, np.ndarray P_tank_F_psi)
 backend.routers.timeseries.generate_timeseries (GenerateProfileRequest request, UserSession session=Depends(get_session))
GenerateProfileResponse backend.routers.timeseries._generate_timeseries (GenerateProfileRequest request, UserSession session)
List[dict] backend.routers.timeseries.segments_to_dict_list (List[PressureSegment] segments)
 backend.routers.timeseries.generate_from_segments (SegmentsRequest request, UserSession session=Depends(get_session))
SegmentsResponse backend.routers.timeseries._generate_from_segments (SegmentsRequest request, UserSession session)
 backend.routers.timeseries.preview_curve (PreviewSegmentsRequest request)
 backend.routers.timeseries.generate_from_csv (Request request, UploadFile file=File(...), UserSession session=Depends(get_session))
 backend.routers.timeseries._curves_from_config (PintleEngineConfig config)
GenerateProfileResponse backend.routers.timeseries._generate_from_csv_bytes (bytes contents, UserSession session)

Variables

 backend.routers.timeseries._PROJECT_ROOT = Path(__file__).parent.parent.parent
 backend.routers.timeseries.N2_Z_LOOKUP_CSV = str(_PROJECT_ROOT / "copv" / "n2_Z_lookup.csv")
 backend.routers.timeseries.router = APIRouter(prefix="/api/timeseries", tags=["timeseries"])
float backend.routers.timeseries.PSI_TO_PA = 6894.76
float backend.routers.timeseries.PA_TO_PSI = 1.0 / PSI_TO_PA