Skip to content

Issue in examples file : examples/figures_of_merit_single.py #107

@Soham13anerjee

Description

@Soham13anerjee

Error : ---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
in <cell line: 12>()
10 from pyeit.mesh.wrapper import PyEITAnomaly_Circle
11 from pyeit.mesh.external import place_electrodes_equal_spacing
---> 12 from pyeit.eit.render import render_2d_mesh
13 from pyeit.visual.plot import create_plot
14 from pyeit.quality.merit import calc_greit_figures_of_merit

ImportError: cannot import name 'render_2d_mesh' from 'pyeit.eit.render' (/usr/local/lib/python3.10/dist-packages/pyeit/eit/render.py)


NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.

now it cannot import the module. But as I looked up the module, it is present in folder :
pyeit/eit/render.py
and the function is render_2d_mesh()

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions