Skip to content

Commit 674751b

Browse files
committed
Update mapper docstrings
1 parent 2be1619 commit 674751b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cf_xarray/accessor.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,14 +424,16 @@ def _build_docstring(func):
424424
mapper_docstrings = {
425425
_get_axis_coord: f"One or more of {(_AXIS_NAMES + _COORD_NAMES)!r}",
426426
_get_axis_coord_single: f"One of {(_AXIS_NAMES + _COORD_NAMES)!r}",
427-
# _get_measure_variable: f"One of {_CELL_MEASURES!r}",
427+
_get_axis_coord_time_accessor: "Time variable accessor e.g. 'T.month'",
428+
_get_with_standard_name: "Standard names",
429+
_get_measure_variable: f"One of {_CELL_MEASURES!r}",
428430
}
429431

430432
sig = inspect.signature(func)
431433
string = ""
432434
for k in set(sig.parameters.keys()) & set(_DEFAULT_KEY_MAPPERS):
433435
mappers = _DEFAULT_KEY_MAPPERS.get(k, [])
434-
docstring = "; ".join(
436+
docstring = ";\n\t\t\t".join(
435437
mapper_docstrings.get(mapper, "unknown. please open an issue.")
436438
for mapper in mappers
437439
)

0 commit comments

Comments
 (0)