MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / get_attribute

Method get_attribute

python/pymesh/Mesh.py:73–76  ·  view source on GitHub ↗

Return attribute values in a flattened array.

(self, name)

Source from the content-addressed store, hash-verified

71 return self.__mesh.has_attribute(name)
72
73 def get_attribute(self, name):
74 """ Return attribute values in a flattened array.
75 """
76 return self.__mesh.get_attribute(name).ravel()
77
78 def get_vertex_attribute(self, name):
79 """ Same as :py:meth:`.get_attribute` but reshaped to have

Callers 15

element_volumesMethod · 0.95
update_2DMethod · 0.45
update_3DMethod · 0.45
update_2DMethod · 0.45
update_3DMethod · 0.45
update_2DMethod · 0.45
update_3DMethod · 0.45
compute_cell_sizeMethod · 0.45
initialize_2D_gridMethod · 0.45
initialize_3D_gridMethod · 0.45
getElementVolumeMethod · 0.45
getBoundaryFaceAreaMethod · 0.45

Calls

no outgoing calls

Tested by 15

assert_mesh_equalMethod · 0.36
compute_from_meshMethod · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
run_min_angle_checkMethod · 0.36
TEST_FFunction · 0.36