Skip to content

Commit 43d0ea8

Browse files
jswhit2jswhit2
authored andcommitted
update docstring
1 parent 5ad260c commit 43d0ea8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/netCDF4/_netCDF4.pyx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6799,8 +6799,8 @@ is the number of characters in each string. Will be converted to
67996799
an array of characters (datatype `'S1'` or `'U1'`) of shape `a.shape + (N,)`.
68006800
68016801
optional kwarg `encoding` can be used to specify character encoding (default
6802-
`utf-8`). If `encoding` is 'none' or 'bytes', a `numpy.string_` the input array
6803-
is treated a raw byte strings (`numpy.string_`).
6802+
`utf-8` for dtype=`'UN'` or `ascii` for dtype=`'SN'`). If `encoding` is 'none' or 'bytes',
6803+
a `numpy.string_` the input array is treated a raw byte strings (`numpy.string_`).
68046804
68056805
optional kwarg `n_strlen` is the number of characters in each string. Default
68066806
is None, which means `n_strlen` will be set to a.itemsize (the number of bytes
@@ -6846,6 +6846,10 @@ optional kwarg `encoding` can be used to specify character encoding (default
68466846
`utf-8`). If `encoding` is 'none' or 'bytes', a `numpy.string_` byte array is
68476847
returned.
68486848
6849+
optional kwarg `encoding` can be used to specify character encoding (default
6850+
`utf-8` for dtype=`'UN'` or `ascii` for dtype=`'SN'`). If `encoding` is 'none' or 'bytes',
6851+
a `numpy.string_` byte array is returned.
6852+
68496853
returns a numpy string array with datatype `'UN'` (or `'SN'`) and shape
68506854
`b.shape[:-1]` where where `N=b.shape[-1]`."""
68516855
dtype = b.dtype.kind

0 commit comments

Comments
 (0)