@@ -259,7 +259,6 @@ def texture_coordinates() -> flask.Response:
259259 geode_object = geode_functions .load_geode_object (params .id )
260260 if not isinstance (geode_object , GeodeSurfaceMesh2D | GeodeSurfaceMesh3D ):
261261 flask .abort (400 , f"{ params .id } is not a GeodeSurfaceMesh" )
262- assert isinstance (geode_object , GeodeSurfaceMesh2D | GeodeSurfaceMesh3D )
263262 texture_coordinates = geode_object .texture_manager ().texture_names ()
264263 return flask .make_response ({"texture_coordinates" : texture_coordinates }, 200 )
265264
@@ -276,7 +275,6 @@ def vertex_attribute_names() -> flask.Response:
276275 geode_object = geode_functions .load_geode_object (params .id )
277276 if not isinstance (geode_object , GeodeMesh ):
278277 flask .abort (400 , f"{ params .id } is not a GeodeMesh" )
279- assert isinstance (geode_object , GeodeMesh )
280278 vertex_attribute_names = geode_object .vertex_attribute_manager ().attribute_names ()
281279 return flask .make_response (
282280 {
@@ -298,7 +296,6 @@ def cell_attribute_names() -> flask.Response:
298296 geode_object = geode_functions .load_geode_object (params .id )
299297 if not isinstance (geode_object , GeodeGrid2D | GeodeGrid3D ):
300298 flask .abort (400 , f"{ params .id } is not a GeodeGrid" )
301- assert isinstance (geode_object , GeodeGrid2D | GeodeGrid3D )
302299 cell_attribute_names = geode_object .cell_attribute_manager ().attribute_names ()
303300 return flask .make_response (
304301 {
@@ -320,7 +317,6 @@ def polygon_attribute_names() -> flask.Response:
320317 geode_object = geode_functions .load_geode_object (params .id )
321318 if not isinstance (geode_object , GeodeSurfaceMesh2D | GeodeSurfaceMesh3D ):
322319 flask .abort (400 , f"{ params .id } is not a GeodeSurfaceMesh" )
323- assert isinstance (geode_object , GeodeSurfaceMesh2D | GeodeSurfaceMesh3D )
324320 polygon_attribute_names = geode_object .polygon_attribute_manager ().attribute_names ()
325321 return flask .make_response (
326322 {
@@ -342,7 +338,6 @@ def polyhedron_attribute_names() -> flask.Response:
342338 geode_object = geode_functions .load_geode_object (params .id )
343339 if not isinstance (geode_object , GeodeSolidMesh3D ):
344340 flask .abort (400 , f"{ params .id } is not a GeodeSolidMesh" )
345- assert isinstance (geode_object , GeodeSolidMesh3D )
346341 polyhedron_attribute_names = (
347342 geode_object .polyhedron_attribute_manager ().attribute_names ()
348343 )
0 commit comments