File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -238,8 +238,7 @@ def determine_coords(
238238 if dims is not None :
239239 for dim in dims :
240240 dim_name = dim
241- # because coord is expected to be a sequence, we need to convert xarray
242- # using 'tolist()' function
241+ # str is applied because dim entries may be None
243242 coords [str (dim_name )] = value [dim ].to_numpy ()
244243
245244 if isinstance (value , np .ndarray ) and dims is not None :
@@ -373,7 +372,8 @@ def Data(
373372 names.
374373 coords : dict, optional
375374 Coordinate values to set for new dimensions introduced by this ``Data`` variable.
376- export_index_as_coords : deprecated, previous version of "infer_dims_and_coords"
375+ export_index_as_coords : bool
376+ Deprecated, previous version of "infer_dims_and_coords"
377377 infer_dims_and_coords : bool, default=False
378378 If True, the ``Data`` container will try to infer what the coordinates
379379 and dimension names should be if there is an index in ``value``.
@@ -453,7 +453,6 @@ def Data(
453453 )
454454
455455 # Optionally infer coords and dims from the input value.
456-
457456 if export_index_as_coords :
458457 infer_dims_and_coords = export_index_as_coords
459458 warnings .warn (
You can’t perform that action at this time.
0 commit comments