Skip to content

Edge order in np.gradient #2

@jruebsam

Description

@jruebsam

For the taylor expansion of the velocity fields currently no edge order is used i.e.:

    def _get_displacement_function(self, f):
        dx = self._distance
        f_x,  f_y  = np.gradient(f  , dx)
        f_xx, f_xy = np.gradient(f_x, dx)
        f_yx, f_yy = np.gradient(f_y, dx)
        return lambda i, j, x, y : f[i, j] + x*f_x[i, j]  + y*f_y[i, j]#\

maybe it is better to add the additional edge_order argument to np.gradient?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions