Hi,
This is an amazing tool and thanks for making it available! Could you help me identify the problem with importing the some of the functions?
After using pip to install foambryo and foambryo[viewing], I am able to import and use the following:
from foambryo import plot_force_inference, plot_tension_inference
from foambryo import infer_forces
However, the following imports do not work and I get a similar error for each one:
Error: ImportError: cannot import name 'dcel_mesh_from_segmentation_mask' from 'foambryo' (C:\ProgramData\anaconda3\Lib\site-packages\foambryo__init__.py)
Functions that cause the error above:
from foambryo import dcel_mesh_from_segmentation_mask
from foambryo.viewing import plot_force_inference, plot_tension_inference
from foambryo import infer_pressures, infer_tensions
from foambryo import PressureComputationMethod, TensionComputationMethod
Since the dcel_mesh_from_segmentation_mask cannot be imported, I am using the following method to build the mesh from the segmentation mask and use plot_force_interface:
Load the labels
import skimage.io as io
Segmentation = io.imread('E:/ablation/ABTZL-cftr-hsp-h2a-tdtom-col8a1a-gfpCaax-2dpf/fish1/T_-1/closed_stack.tif')
Hi, This is an amazing tool and thanks for making it available! Could you help me identify the problem with importing the some of the functions?
After using pip to install foambryo and foambryo[viewing], I am able to import and use the following:
However, the following imports do not work and I get a similar error for each one:
Error: ImportError: cannot import name 'dcel_mesh_from_segmentation_mask' from 'foambryo' (C:\ProgramData\anaconda3\Lib\site-packages\foambryo__init__.py)
Functions that cause the error above:
Since the dcel_mesh_from_segmentation_mask cannot be imported, I am using the following method to build the mesh from the segmentation mask and use plot_force_interface:
Load the labels
import skimage.io as io Segmentation = io.imread('E:/ablation/ABTZL-cftr-hsp-h2a-tdtom-col8a1a-gfpCaax-2dpf/fish1/T_-1/closed_stack.tif')
Reconstruct a multimaterial mesh from the labels
DW = geometry_reconstruction_3d(Segmentation,min_dist = 3) Verts, Faces_multimaterial = DW.return_mesh() Mesh = DCEL_Data(Verts,Faces_multimaterial)