Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError in brazilian_test #31

Open
xuzhiping opened this issue Dec 14, 2020 · 1 comment
Open

TypeError in brazilian_test #31

xuzhiping opened this issue Dec 14, 2020 · 1 comment
Assignees
Labels

Comments

@xuzhiping
Copy link

I am experiencing a problem while generating solidspy input files from the gmsh output (*.msh)

https://solidspy.readthedocs.io/en/latest/tutorials/brazilian_test.html

An error was reported as

Traceback (most recent call last):
File "gen.py", line 11, in
eles = cells["triangle"]
TypeError: list indices must be integers or slices, not str

Could you help me to solve this issue? Thanks.

@nicoguaro
Copy link
Collaborator

@xuzhiping, I think that the problem is the version of meshio being used. The tutorial was planned with version 3.0 in mind. Try the following

pip install meshio==3.0

And let me know if it works.

@nicoguaro nicoguaro self-assigned this Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants