Skip to content

Make Risk Model Parameters Configurable #7

Description

@YanCotta

Description: The risk_weights and risk_thresholds in RiskAssessmentService are hardcoded. This makes it difficult to adjust the risk model without changing the code. These parameters should be loaded from the application settings.

Tasks:

Move the risk_weights and risk_thresholds to the settings.py file.

Load these parameters from environment variables or a configuration file.

Update the RiskAssessmentService to use the values from the settings.

Relevant Files:

src/climate_risk/application/services/risk_service.py

src/climate_risk/config/settings.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions