|
2 | 2 | blockm - Block average (x, y, z) data tables by mean, median, or mode estimation.
|
3 | 3 | """
|
4 | 4 |
|
| 5 | +from collections.abc import Sequence |
5 | 6 | from typing import Literal
|
6 | 7 |
|
7 | 8 | import numpy as np
|
@@ -93,7 +94,7 @@ def blockmean(
|
93 | 94 | z=None,
|
94 | 95 | output_type: Literal["pandas", "numpy", "file"] = "pandas",
|
95 | 96 | outfile: PathLike | None = None,
|
96 |
| - region=None, |
| 97 | + region: Sequence[float | str] | str | None = None, |
97 | 98 | verbose: Literal["quiet", "error", "warning", "timing", "info", "compat", "debug"]
|
98 | 99 | | bool = False,
|
99 | 100 | **kwargs,
|
@@ -206,7 +207,7 @@ def blockmedian(
|
206 | 207 | z=None,
|
207 | 208 | output_type: Literal["pandas", "numpy", "file"] = "pandas",
|
208 | 209 | outfile: PathLike | None = None,
|
209 |
| - region=None, |
| 210 | + region: Sequence[float | str] | str | None = None, |
210 | 211 | verbose: Literal["quiet", "error", "warning", "timing", "info", "compat", "debug"]
|
211 | 212 | | bool = False,
|
212 | 213 | **kwargs,
|
@@ -313,7 +314,7 @@ def blockmode(
|
313 | 314 | z=None,
|
314 | 315 | output_type: Literal["pandas", "numpy", "file"] = "pandas",
|
315 | 316 | outfile: PathLike | None = None,
|
316 |
| - region=None, |
| 317 | + region: Sequence[float | str] | str | None = None, |
317 | 318 | verbose: Literal["quiet", "error", "warning", "timing", "info", "compat", "debug"]
|
318 | 319 | | bool = False,
|
319 | 320 | **kwargs,
|
|
0 commit comments