Issues running scikit-fmm on a new machine

12 views
Skip to first unread message

Jeremie G.

unread,
Jan 24, 2025, 4:09:40 AMJan 24
to scikit-fmm
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


Jason Furtney

unread,
Jan 29, 2025, 2:50:04 PMJan 29
to sciki...@googlegroups.com
OK sorry for the delay on this.

I think there was a bug in the previous version where NumPy 2 was not correctly supported. This should be fixed now, I just pushed out a release. Also there are Windows wheel files now.

All the best,
Jason

--
You received this message because you are subscribed to the Google Groups "scikit-fmm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scikit-fmm+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/scikit-fmm/4bf4f28b-2b57-4be1-bb50-2714b3fff860n%40googlegroups.com.

Jeremie G.

unread,
Feb 4, 2025, 4:08:49 AMFeb 4
to sciki...@googlegroups.com
Hi Jason,

Perfect, thank you for your support! 

Cheers, 
Jeremie

Reply all
Reply to author
Forward
0 new messages