New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplifying da.map_overlap's boundary padding #4252
Comments
One hypothetical case that comes to mind is solving PDEs, where having
different boundary conditions on different edges is quite common. I know
people that have tried using Dask for this, but given up due to poor
performance. I don't have a good way to determine how important this
feature is.
…On Tue, Nov 27, 2018 at 2:36 PM jakirkham ***@***.***> wrote:
Currently da.map_overlap supports edge paddings of different kinds along
different dimensions. This complicates things like using da.pad within
da.map_overlap <#3641>.
AFAIK there are no use cases for different edge paddings on different
dimensions. The closest thing that I know of is to pad some dimensions and
not others (i.e. having different depths per dimension), which can still be
cast in terms of having the same padding for all dimensions (just some are
trivial). Given this, I'd like to propose deprecating boundary arguments
<http://docs.dask.org/en/latest/array-overlap.html#dask.array.map_overlap>
that are anything other than simple values (e.g. padding mode or constant
for all dimensions).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4252>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AASszNZ9w9hd5TyKpOxAkqGUSEGVDkTIks5uzZRAgaJpZM4Y2Mas>
.
|
Good point. Though these would still be possible by applying Should add that my general inclination is actually to push all users looking for explicit padding from Dask to use |
Thoughts on handling this in 2.0? xref: #4973 |
I think I prefer to have a convenience keyword argument in map_overlap. I'd be more than happy if that called pad. I don't care strongly about different edge paddings on different dimensions. In terms of handling this before 2.0 I don't have strong thoughts. To me this doesn't seem to be a large priority to me personally (I haven't heard anyone complain) and so I don't think that it should block release. |
Currently
da.map_overlap
supports edge paddings of different kinds along different dimensions. This complicates things like usingda.pad
withinda.map_overlap
.AFAIK there are no use cases for different edge paddings on different dimensions. The closest thing that I know of is to pad some dimensions and not others (i.e. having different depths per dimension), which can still be cast in terms of having the same padding for all dimensions (just some are trivial). Given this, I'd like to propose deprecating
boundary
arguments that are anything other than simple values (e.g. padding mode or constant for all dimensions).The text was updated successfully, but these errors were encountered: