Skip to content

Commit 112eb58

Browse files
Add averages with time dimension removed (#236)
- Add new `.average()` method to `TemporalAccessor` - Rename previous `.average()` to `.group_average()` - Refactor many private methods in `TemporalAccessor` class - Rename methods and variables, update docstrings - Refactor `._validate_weights()` for a significant performance increase of about 4-5x (for the monthly Dataset I was testing on) - Remove redundant tests for private methods
1 parent 4a35d6a commit 112eb58

File tree

4 files changed

+2373
-3290
lines changed

4 files changed

+2373
-3290
lines changed

.vscode/xcdat.code-workspace

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
}
66
],
77
"settings": {
8-
"autoDocstring.docstringFormat": "numpy"
8+
"autoDocstring.docstringFormat": "numpy",
9+
"editor.formatOnSave": true
910
}
1011
}

docs/api.rst

+1
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ Methods
104104
Dataset.bounds.add_missing_bounds
105105
Dataset.spatial.average
106106
Dataset.temporal.average
107+
Dataset.temporal.group_average
107108
Dataset.temporal.climatology
108109
Dataset.temporal.departures
109110
Dataset.temporal.center_times

0 commit comments

Comments
 (0)