tempor.clinic.components module¶
- class tempor.clinic.components.AppSettings(name, example_name)[source]¶
Bases:
tupleCreate new instance of AppSettings(name, example_name)
-
tempor.clinic.components.add_vertical_space(num_lines: int =
1)[source]¶ Add vertical space to your Streamlit app.
-
tempor.clinic.components.page_config(app_settings: AppSettings, icon_path: str | None =
None) None[source]¶
-
tempor.clinic.components.sidebar(app_settings: AppSettings, *, logo_path: str | None =
None, logo_width: int =75, description_html: str | None =None, pop_up_label: str | None =None, pop_up_content: str | None =None, pop_up_width: int =800) None[source]¶
-
tempor.clinic.components.faux_confirm_modal(panel_type: Literal[error] | Literal[warning] | Literal[info], panel_text: str, panel_icon: str, confirm_btn_on_click: Callable, confirm_btn_on_click_kwargs: dict, confirm_btn_help: str, cancel_btn_on_click: Callable, cancel_btn_on_click_kwargs: dict, cancel_btn_help: str, button_cols_split=
(0.2, 0.2, 0.6))[source]¶
- tempor.clinic.components.sample_selector(app_settings: AppSettings, app_state: AppState, db: DetaBase, field_defs: FieldDefsCollection, sample_keys: list[str]) DataSample[source]¶
-
tempor.clinic.components.static_data_table(app_settings: AppSettings, app_state: AppState, db: DetaBase, field_defs: FieldDefsCollection, data_sample: DataSample, heading: str =
'### Static Data', heading_row_columns: Sequence[int | float] =(0.3, 0.066, 0.734)) None[source]¶
-
tempor.clinic.components.temporal_data_table(app_settings: AppSettings, app_state: AppState, db: DetaBase, field_defs: FieldDefsCollection, data_sample: DataSample, heading: str =
'### Temporal Data', split_heading_and_buttons: bool =False, heading_row_columns: Sequence[int | float] =(0.5, 0.133, 0.133, 0.134, 0.1), first_timestep_note: str | None =None, last_timestep_note: str | None =None) None[source]¶
- tempor.clinic.components.temporal_data_chart(data_sample: DataSample, field_defs: FieldDefsCollection)[source]¶
- tempor.clinic.components.risk_estimation_time_max_slider(min_value: Any, max_value: Any, step: Any, initial_value: Any) None[source]¶
-
tempor.clinic.components.risk_prediction_chart(data_sample: DataSample, time_axis_title: str, risk_axis_title: str, time_max: Any, time_resolution: Any, risk_prediction_callback: RiskPredictionCallback, time_format: str | None =
None, risk_format: str | None =None, **kwargs)[source]¶
- tempor.clinic.components.debug_info(data_sample: DataSample) None[source]¶