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

When run the demo, why the error indicating missing input parameter happens. #279

Open
TJUCoastlabRGQ opened this issue Oct 8, 2024 · 2 comments

Comments

@TJUCoastlabRGQ
Copy link

I'm running the demo included in "ats/tools/meshing/meshing_ats/four-polygon-test" with the recommended command "python ../meshing_ats.py -n 10 -d 1 ./four_polygon.vtk". When runing the following command "m3 = Mesh3D.extruded_Mesh2D(m2, [options.depth,], [options.num_cells,], [10000,])", I got the following error "TypeError: Mesh3D.extruded_Mesh2D() missing 1 required positional argument: 'mat_ids'".
What's the problem, thanks in advance!

@ecoon
Copy link
Collaborator

ecoon commented Oct 8, 2024

Oh, I'm not sure that utility is tested in our CI, so it's very possible it is out of date. I'll take a look. mat_ids is [10000,] in this case, so clearly we're missing another argument to that function somewhere.

@ecoon
Copy link
Collaborator

ecoon commented Oct 8, 2024

Ok, so vtk_io.py is python2, and we don't really support python2 for anything anymore. I'm either going to remove this or refactor it, but either way it won't happen today.

Can you try changing the second-to-last line in your meshing_ats.py file to:

m3 = Mesh3D.extruded_Mesh2D(m2, ['constant',], [options.depth,], [options.num_cells,], [10000,])

I think it will then work for you.

But what exactly are you trying to do? There may be better ways to do what you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants