Good afternoon/morning,
I have been using scikit-fmm for several years now. It has been very useful and it has always been easy to use. So, thank you!
Now, on a new machine with pre-existing software, I facing difficulties to calculate signed distances. I think that this may come from some other software already installed on the computer or version problems, but I cannot put my finger on it.
I am using python 3.12 with the latest version of scikit-fmm, using pycharm 2024.3.1.1 (pro edition).
When running the base example, as provided on the webpage:
import skfmm
import numpy as np
phi = np.ones((3, 3))
phi[1, 1] = -1
skfmm.distance(phi)
I get the following message:
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "...\Lib\site-packages\skfmm\pfmm.py", line 110, in distance
d = cFastMarcher(phi, dx, flag, None, ext_mask,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: flag must be a 1D to 12-D array of integers
Do you know what might be the cause of this?
Thanks, and best regards,
Jeremie