-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Hello,
I'm using pyTFM to analyze TFM images and I encountered an error when the FEM mask get close to the borders of the image. Here's an example of the traceback I get:
File ".\pyTFM_workflow.py", line 193, in <module> nodes, elements, loads, mats = grid_setup(mask_FEM, -fx, -fy, sigma=0.5) File "c:\users\tomma\anaconda3\envs\pytfm_env\pytfm-master\pyTFM\grid_setup_solids_py.py", line 713, in grid_setup ids[coords[0], coords[1]] = np.arange(coords.shape[1], dtype=int) # filling with node ids IndexError: index 83 is out of bounds for axis 1 with size 83
It seems that the mask might be transposed at some point in grid_setup (possibly with .T), which may invert the mask dimensions and lead to a mismatch in indexing.
Is this a known issue? Is there a recommended way to avoid this, or an official fix?
Thanks in advance.