marcomusy / vedo

A python module for scientific analysis of 3D data based on VTK and Numpy
https://vedo.embl.es
MIT License
1.98k stars 257 forks source link

Indexing Assembly via string checks if string is in a name rather than is equal to the name #1060

Closed JeffreyWardman closed 4 months ago

JeffreyWardman commented 4 months ago
a = vedo.Assembly({"mesh": mesh, "mesh_without_floor": mesh_without_floor})
a["mesh_without_floor"] == mesh  # true - should not be so

It looks as though the indexing checks if string in key rather than key == string.

marcomusy commented 4 months ago

would give it a try to fix it in a PR? :)

JeffreyWardman commented 4 months ago

Sure thing!