Skip to content

Conversation

@mo-philrelton
Copy link
Contributor

EPPT-2590

In order to calculate the daily Fire Severity Index, we require a Fire Severity Index calculation. In the original algorithm this is referred to as Daily Severity Rating (DSR), but we call this class FireSeverityIndex to align with the requested output name.

This class, and associated tests, partially reproduce the Canadian Forest Fire Weather Index from van Wagner and Pickett's 1985 FORTRAN implementation

Testing:

  • Ran tests and they passed OK
  • Added new tests for the new feature(s)

@codecov
Copy link

codecov bot commented Dec 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (EPPT_2411_fire_severity_index_workflow_development@a2fcead). Learn more about missing BASE report.

Additional details and impacted files
@@                                  Coverage Diff                                  @@
##             EPPT_2411_fire_severity_index_workflow_development    #2255   +/-   ##
=====================================================================================
  Coverage                                                      ?   95.25%           
=====================================================================================
  Files                                                         ?      152           
  Lines                                                         ?    15360           
  Branches                                                      ?        0           
=====================================================================================
  Hits                                                          ?    14631           
  Misses                                                        ?      729           
  Partials                                                      ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mo-philrelton mo-philrelton force-pushed the EPPT_2590_fireseverityindex branch from 14a9476 to 64b16f1 Compare December 17, 2025 16:49
Copy link

@RDP-mo RDP-mo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good as per our teams chat I'll do some checks on the method this afternoon

Copy link
Contributor

@ryan-cocking-mo ryan-cocking-mo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests pass, only one comment relating to a docstring. Approved.

From Van Wagner and Pickett (1985), Page 8: Equation 31.

Returns:
np.ndarray: The calculated DSR values.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
np.ndarray: The calculated DSR values.
The calculated DSR values.

Return type in docstring not required. Sphinx/Read the Docs infers from return type hint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants