Skip to content

Commit 447f2d7

Browse files
committed
continue
1 parent c3526fb commit 447f2d7

4 files changed

Lines changed: 2 additions & 9 deletions

File tree

src/opengeodeweb_back/geode_objects/geode_structural_model.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ def object_priority(cls, filename: str) -> int:
6060

6161
def is_saveable(self, filename: str) -> bool:
6262
return og_geosciences.is_structural_model_saveable(
63-
self.structural_model,
64-
filename,
63+
self.structural_model, filename
6564
)
6665

6766
def save(self, filename: str) -> list[str]:

src/opengeodeweb_back/routes/blueprint_routes.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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
)

src/opengeodeweb_back/routes/models/blueprint_models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ def extract_uuids_endpoint() -> flask.Response:
4747
model = geode_functions.load_geode_object(params.id)
4848
if not isinstance(model, GeodeModel):
4949
flask.abort(400, f"{params.id} is not a GeodeModel")
50-
assert isinstance(model, GeodeModel)
5150
mesh_components = model.mesh_components()
5251
uuid_dict = {}
5352
for mesh_component, ids in mesh_components.items():

src/opengeodeweb_back/utils_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def validate_request(request: flask.Request, schema: SchemaDict) -> dict[str, An
115115
error_msg = str(e)
116116
print("Validation failed:", error_msg, flush=True)
117117
flask.abort(400, error_msg)
118-
return cast(dict[str, Any], json_data)
118+
return json_data
119119

120120

121121
def set_interval(

0 commit comments

Comments
 (0)