dopo.dash.app

Attributes

app

Functions

clear_search_on_dataset_change(→ str)

Clear the dataset search bar when switching dataset types.

enforce_single_dataset_selection(→ List[str])

Enforce single selection in the dataset type checklist.

main()

populate_projects_on_load(→ Tuple[List[dict], str])

Populate the project list on initial load.

run_analysis_and_plot(→ Tuple)

Main analysis and plot callback. Handles running the analysis and updating the UI.

toggle_dataset_checklists(→ Tuple[dict, dict, dict, dict])

Show/hide dataset checklist containers based on selected type.

update_databases(→ List[dict])

Update the database list based on selected project.

update_filtered_dataset_options(→ Tuple[List[dict], ...)

Update checklist options for sectors, CPC, and ISIC based on selection and search.

update_impact_assessment_list(→ List[dict])

Update the impact assessment list based on search and selected project.

Module Contents

dopo.dash.app.clear_search_on_dataset_change(_: List[str]) str[source]

Clear the dataset search bar when switching dataset types.

dopo.dash.app.enforce_single_dataset_selection(current_selection: List[str]) List[str][source]

Enforce single selection in the dataset type checklist.

dopo.dash.app.main()[source]
dopo.dash.app.populate_projects_on_load(n_intervals: int) Tuple[List[dict], str][source]

Populate the project list on initial load.

dopo.dash.app.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[source]

Main analysis and plot callback. Handles running the analysis and updating the UI.

dopo.dash.app.toggle_dataset_checklists(selected_types: List[str]) Tuple[dict, dict, dict, dict][source]

Show/hide dataset checklist containers based on selected type.

dopo.dash.app.update_databases(selected_project: str) List[dict][source]

Update the database list based on selected project.

dopo.dash.app.update_filtered_dataset_options(selected_types: List[str], selected_databases: List[str], search_term: str | None) Tuple[List[dict], List[dict], List[dict], List[dict]][source]

Update checklist options for sectors, CPC, and ISIC based on selection and search.

dopo.dash.app.update_impact_assessment_list(search_term: str, selected_project: str, triggered_id: str = None) List[dict][source]

Update the impact assessment list based on search and selected project.

dopo.dash.app.app[source]