dopo.dash.app ============= .. py:module:: dopo.dash.app Attributes ---------- .. autoapisummary:: dopo.dash.app.app Functions --------- .. autoapisummary:: dopo.dash.app.clear_search_on_dataset_change dopo.dash.app.enforce_single_dataset_selection dopo.dash.app.main dopo.dash.app.populate_projects_on_load dopo.dash.app.run_analysis_and_plot dopo.dash.app.toggle_dataset_checklists dopo.dash.app.update_databases dopo.dash.app.update_filtered_dataset_options dopo.dash.app.update_impact_assessment_list Module Contents --------------- .. py:function:: clear_search_on_dataset_change(_: List[str]) -> str Clear the dataset search bar when switching dataset types. .. py:function:: enforce_single_dataset_selection(current_selection: List[str]) -> List[str] Enforce single selection in the dataset type checklist. .. py:function:: main() .. py:function:: populate_projects_on_load(n_intervals: int) -> Tuple[List[dict], str] Populate the project list on initial load. .. py:function:: run_analysis_and_plot(n_clicks: int, selected_sector: str, selected_method: str, selected_plot: str, project: str, databases: List[str], sectors: List[str], cpc: List[str], isic: List[str], dataset: List[str], methods: List[str], stored_data: dict, search_type: List[str], exclude_markets: List[str]) -> Tuple Main analysis and plot callback. Handles running the analysis and updating the UI. .. py:function:: toggle_dataset_checklists(selected_types: List[str]) -> Tuple[dict, dict, dict, dict] Show/hide dataset checklist containers based on selected type. .. py:function:: update_databases(selected_project: str) -> List[dict] Update the database list based on selected project. .. py:function:: update_filtered_dataset_options(selected_types: List[str], selected_databases: List[str], search_term: Union[str, None]) -> Tuple[List[dict], List[dict], List[dict], List[dict]] Update checklist options for sectors, CPC, and ISIC based on selection and search. .. py:function:: update_impact_assessment_list(search_term: str, selected_project: str, triggered_id: str = None) -> List[dict] Update the impact assessment list based on search and selected project. .. py:data:: app