Skip to content

BUG: Displacements field interpolator is broken #267

@oesteban

Description

@oesteban

This code:

new_map = np.vstack(
tuple(
map_coordinates(
self._field[..., i],
ijk,
order=3,
mode="constant",
cval=np.nan,
prefilter=True,
)
for i in range(self.reference.ndim)
)
).T
seems to be returning very wrong values.

Instead of stacking three interpolations, we should run a single 4D interpolation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions