-
Notifications
You must be signed in to change notification settings - Fork 100
EPPT-2587: Fire Severity Index: Add a InitialSpreadIndex class to IMPROVER #2252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: EPPT_2411_fire_severity_index_workflow_development
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## EPPT_2411_fire_severity_index_workflow_development #2252 +/- ##
=====================================================================================
Coverage ? 95.25%
=====================================================================================
Files ? 152
Lines ? 15376
Branches ? 0
=====================================================================================
Hits ? 14647
Misses ? 729
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
9132f02 to
22f9a43
Compare
RDP-mo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good - mostly nits again. I'd only add that I'd avoid duplicating in comment form what is already in docstring form and generally I'd go for a few less comments. Comment drift is a real and common problem. Wrong comments are more problematic in my experience than missing comments (at least if the code is reasonably clear too). Also reading 2x the text is double the complexity rather than half so sometimes additional comments aren't helping the reader as much as intended.
ryan-cocking-mo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests all pass, just a few comments around types in docstrings. Approved.
| Args: | ||
| spread_factor (np.ndarray): The spread factor values. | ||
| wind_function (np.ndarray): The wind function values. | ||
|
|
||
| Returns: | ||
| np.ndarray: The calculated ISI values. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Args: | |
| spread_factor (np.ndarray): The spread factor values. | |
| wind_function (np.ndarray): The wind function values. | |
| Returns: | |
| np.ndarray: The calculated ISI values. | |
| Args: | |
| spread_factor: The spread factor values. | |
| wind_function: The wind function values. | |
| Returns: | |
| The calculated ISI values. |
Types not required in docstring; Sphinx/Read the Docs infers from type hints.
| From Van Wagner and Pickett (1985), Page 7: Equation 25. | ||
|
|
||
| Returns: | ||
| np.ndarray: The spread factor values. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| np.ndarray: The spread factor values. | |
| The spread factor values. |
Type not required in docstring.
| From Van Wagner and Pickett (1985), Page 7: Equation 24. | ||
|
|
||
| Returns: | ||
| np.ndarray: The wind function values. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| np.ndarray: The wind function values. | |
| The wind function values. |
Type not required in docstring.
| This uses Steps 1 & 2 from Van Wagner and Pickett (1985), page 8. | ||
|
|
||
| Returns: | ||
| np.ndarray: The calculated ISI values. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| np.ndarray: The calculated ISI values. | |
| The calculated ISI values. |
Type not required in docstring.
EPPT-2587
In order to calculate the daily Fire Severity Index, we require an Initial Spread Index calculation. This class, and associated tests, partially reproduce the Canadian Forest Fire Weather Index from van Wagner and Pickett's 1985 FORTRAN implementation
Testing: