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
This is a bug on a yet non-existing code, but related to on-going work on issue #73.
The idea is to enable rout = r1 + r2 with r1 being a Raster and r2 being either a Raster, a numpy array, or a number. This should return a Raster.
This works great in most cases, except in the situation when r1 is a numpy array and r2 a Raster. In that case, numpy's __add__ method is used instead, which returns a numpy array. This is counter-intuitive in my opinion and should be avoided.
I believe the reason behind it is the numpy's interface, related to PR #210. When issue #73 is solved, one needs to check how to have both features working together.
The text was updated successfully, but these errors were encountered:
This is a bug on a yet non-existing code, but related to on-going work on issue #73.
The idea is to enable
rout = r1 + r2
with r1 being a Raster and r2 being either a Raster, a numpy array, or a number. This should return a Raster.This works great in most cases, except in the situation when r1 is a numpy array and r2 a Raster. In that case, numpy's
__add__
method is used instead, which returns a numpy array. This is counter-intuitive in my opinion and should be avoided.I believe the reason behind it is the numpy's interface, related to PR #210. When issue #73 is solved, one needs to check how to have both features working together.
The text was updated successfully, but these errors were encountered: