You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature functionality
Provide a view of the process-local array (a slice of the global array) as a numpy ndarray.
This is very different from the dndarray.numpy() method that provides a copy of the global array (gathered on each MPI process) as a numpy ndarray.
Potential confusion will be addressed in the documentation.
Additional context
Required for interoperability with the numpy ecosystem including the xarray library. Missing __array__ method results in numpy not recognizing the DNDarray as an array object, e.g.:
Related
#1031
Feature functionality
Provide a view of the process-local array (a slice of the global array) as a numpy ndarray.
This is very different from the
dndarray.numpy()
method that provides a copy of the global array (gathered on each MPI process) as a numpy ndarray.Potential confusion will be addressed in the documentation.
Additional context
Required for interoperability with the numpy ecosystem including the xarray library. Missing
__array__
method results in numpy not recognizing the DNDarray as an array object, e.g.:whereas interoperability requires:
The text was updated successfully, but these errors were encountered: