Skip to content

Basic example from readme not working #299

Description

@jherkenhoff

When trying to execute the example shown in the readme, I get the following error:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[5], [line 61](vscode-notebook-cell:?execution_count=5&line=61)
     58 import matplotlib.pyplot as plt
     59 import matplotlib.tri as tri
---> 61 triang = tri.Triangulation(verts[:,0], verts[:,1])
     63 fig, ax = plt.subplots()
     64 ax.set_aspect('equal')

TypeError: tuple indices must be integers or slices, not tuple

My versions:

  • Python: 3.12.3
  • PyMFEM: 4.8.0.1
  • Matplotlib: 3.10.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions