@@ -160,7 +160,7 @@ def open(
160
160
storage_options : dict [str , Any ] | None = None ,
161
161
** kwargs : Any , # TODO: type kwargs as valid args to async_api.open
162
162
) -> Array | Group :
163
- """Convenience function to open a group or array using file-mode-like semantics.
163
+ """Open a group or array using file-mode-like semantics.
164
164
165
165
Parameters
166
166
----------
@@ -221,7 +221,7 @@ def save(
221
221
path : str | None = None ,
222
222
** kwargs : Any , # TODO: type kwargs as valid args to async_api.save
223
223
) -> None :
224
- """Convenience function to save an array or group of arrays to the local file system.
224
+ """Save an array or group of arrays to the local file system.
225
225
226
226
Parameters
227
227
----------
@@ -254,8 +254,9 @@ def save_array(
254
254
storage_options : dict [str , Any ] | None = None ,
255
255
** kwargs : Any , # TODO: type kwargs as valid args to async_api.save_array
256
256
) -> None :
257
- """Convenience function to save a NumPy array to the local file system, following a
258
- similar API to the NumPy save() function.
257
+ """Save a NumPy array to the local file system.
258
+
259
+ Follows a similar API to the NumPy save() function.
259
260
260
261
Parameters
261
262
----------
@@ -295,8 +296,9 @@ def save_group(
295
296
storage_options : dict [str , Any ] | None = None ,
296
297
** kwargs : NDArrayLike ,
297
298
) -> None :
298
- """Convenience function to save several NumPy arrays to the local file system, following a
299
- similar API to the NumPy savez()/savez_compressed() functions.
299
+ """Save several NumPy arrays to the local file system.
300
+
301
+ Follows a similar API to the NumPy savez()/savez_compressed() functions.
300
302
301
303
Parameters
302
304
----------
@@ -920,7 +922,7 @@ def empty(shape: ChunkCoords, **kwargs: Any) -> Array:
920
922
# TODO: move ArrayLike to common module
921
923
# TODO: add type annotations for kwargs
922
924
def empty_like (a : ArrayLike , ** kwargs : Any ) -> Array :
923
- """Create an empty array like `a` .
925
+ """Create an empty array like another array .
924
926
925
927
Parameters
926
928
----------
@@ -939,8 +941,7 @@ def empty_like(a: ArrayLike, **kwargs: Any) -> Array:
939
941
940
942
# TODO: add type annotations for kwargs and fill_value
941
943
def full (shape : ChunkCoords , fill_value : Any , ** kwargs : Any ) -> Array :
942
- """Create an array, with `fill_value` being used as the default value for
943
- uninitialized portions of the array.
944
+ """Create an array with a default fill value.
944
945
945
946
Parameters
946
947
----------
@@ -962,7 +963,7 @@ def full(shape: ChunkCoords, fill_value: Any, **kwargs: Any) -> Array:
962
963
# TODO: move ArrayLike to common module
963
964
# TODO: add type annotations for kwargs
964
965
def full_like (a : ArrayLike , ** kwargs : Any ) -> Array :
965
- """Create a filled array like `a` .
966
+ """Create a filled array like another array .
966
967
967
968
Parameters
968
969
----------
@@ -981,8 +982,7 @@ def full_like(a: ArrayLike, **kwargs: Any) -> Array:
981
982
982
983
# TODO: add type annotations for kwargs
983
984
def ones (shape : ChunkCoords , ** kwargs : Any ) -> Array :
984
- """Create an array, with one being used as the default value for
985
- uninitialized portions of the array.
985
+ """Create an array with a fill value of one.
986
986
987
987
Parameters
988
988
----------
@@ -1001,7 +1001,7 @@ def ones(shape: ChunkCoords, **kwargs: Any) -> Array:
1001
1001
1002
1002
# TODO: add type annotations for kwargs
1003
1003
def ones_like (a : ArrayLike , ** kwargs : Any ) -> Array :
1004
- """Create an array of ones like `a` .
1004
+ """Create an array of ones like another array .
1005
1005
1006
1006
Parameters
1007
1007
----------
@@ -1063,7 +1063,7 @@ def open_array(
1063
1063
1064
1064
# TODO: add type annotations for kwargs
1065
1065
def open_like (a : ArrayLike , path : str , ** kwargs : Any ) -> Array :
1066
- """Open a persistent array like `a` .
1066
+ """Open a persistent array like another array .
1067
1067
1068
1068
Parameters
1069
1069
----------
@@ -1084,8 +1084,7 @@ def open_like(a: ArrayLike, path: str, **kwargs: Any) -> Array:
1084
1084
1085
1085
# TODO: add type annotations for kwargs
1086
1086
def zeros (shape : ChunkCoords , ** kwargs : Any ) -> Array :
1087
- """Create an array, with zero being used as the default value for
1088
- uninitialized portions of the array.
1087
+ """Create an array with a fill value of zero.
1089
1088
1090
1089
Parameters
1091
1090
----------
@@ -1104,7 +1103,7 @@ def zeros(shape: ChunkCoords, **kwargs: Any) -> Array:
1104
1103
1105
1104
# TODO: add type annotations for kwargs
1106
1105
def zeros_like (a : ArrayLike , ** kwargs : Any ) -> Array :
1107
- """Create an array of zeros like `a` .
1106
+ """Create an array of zeros like another array .
1108
1107
1109
1108
Parameters
1110
1109
----------
0 commit comments