Skip to content

Properly cast arrays before calling C code #9

Description

@tmcclintock

This is actually two issues.

  1. Arrays in Python can sometimes not be C-ordered and require a numpy.ascontiguousarray() call. This can be handled internally in the toolkit.

  2. Similarly, the C code in the toolkit assumes double precision (float64). If a numpy array is floating point precision (float32) then interpolation errors can occur. This can be handled with proper casting at the same time that issue (1) is handled.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions