Skip to content
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

spurious type error #3

Closed
jkfurtney opened this issue May 31, 2012 · 1 comment
Closed

spurious type error #3

jkfurtney opened this issue May 31, 2012 · 1 comment

Comments

@jkfurtney
Copy link
Member

First problem! I installed and then this...

In [1]: import skfmm

In [2]: import numpy as np

In [3]: phi = np.ones((3, 3))

In [4]: phi[1, 1] = -1

In [5]: skfmm.distance(phi)

ValueError Traceback (most recent call last)
/users/wd15/packages/ in ()
----> 1 skfmm.distance(phi)

/users/wd15/.virtualenvs/lsmlib/lib/python2.6/site-packages/skfmm/pfmm.pyc
in distance(phi, dx, self_test)
71 """
72 phi, dx, flag = pre_process_args(phi, dx)
---> 73 d = cFastMarcher(phi, dx, flag, None, int(self_test))
74 d = post_process_result(d)
75 return d

ValueError: flag must be a 1D to 12-D array of integers

Any ideas?

@jkfurtney
Copy link
Member Author

This seems to be same as issue 2. A 32/64 type issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant