Skip to content

Commit 03b07f2

Browse files
committed
feat[DEI-263]: fix some formatting
1 parent 6d22418 commit 03b07f2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

decoimpact/business/entities/rules/time_aggregation_rule.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def _perform_grouping_operation(
119119
self,
120120
grouped_values,
121121
operation_type: TimeOperationType,
122-
time_dim_name: str = None,
122+
time_dim_name: str,
123123
) -> _xr.DataArray:
124124
"""Returns the values based on the grouping operation type
125125
@@ -137,7 +137,7 @@ def _perform_grouping_operation(
137137
if operation_type is TimeOperationType.MULTI_YEAR_MONTHLY_AVERAGE:
138138
# Compute mean across years for each calendar month
139139
monthly = grouped_values.mean(skipna=True)
140-
# Ensure all 12 months are present (1..12). reindex will insert NaNs where missing.
140+
# Ensure all 12 months are present (1..12), insert NaNs using reindex
141141
months = _np.arange(1, 13)
142142
result = monthly.reindex({"month": months})
143143

0 commit comments

Comments
 (0)