From 674751b59fc5fe32759eda145b1cb6c917633367 Mon Sep 17 00:00:00 2001 From: dcherian Date: Tue, 26 Jan 2021 13:19:23 -0700 Subject: [PATCH] Update mapper docstrings --- cf_xarray/accessor.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cf_xarray/accessor.py b/cf_xarray/accessor.py index adb5bc3a..6500bfee 100644 --- a/cf_xarray/accessor.py +++ b/cf_xarray/accessor.py @@ -424,14 +424,16 @@ def _build_docstring(func): mapper_docstrings = { _get_axis_coord: f"One or more of {(_AXIS_NAMES + _COORD_NAMES)!r}", _get_axis_coord_single: f"One of {(_AXIS_NAMES + _COORD_NAMES)!r}", - # _get_measure_variable: f"One of {_CELL_MEASURES!r}", + _get_axis_coord_time_accessor: "Time variable accessor e.g. 'T.month'", + _get_with_standard_name: "Standard names", + _get_measure_variable: f"One of {_CELL_MEASURES!r}", } sig = inspect.signature(func) string = "" for k in set(sig.parameters.keys()) & set(_DEFAULT_KEY_MAPPERS): mappers = _DEFAULT_KEY_MAPPERS.get(k, []) - docstring = "; ".join( + docstring = ";\n\t\t\t".join( mapper_docstrings.get(mapper, "unknown. please open an issue.") for mapper in mappers )