Skip to content

Commit 25c320b

Browse files
Merge branch 'geode-objects-redesign' of https://github.com/Geode-solutions/OpenGeodeWeb-Back into geode-objects-redesign
2 parents aee4758 + 77d1680 commit 25c320b

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

src/opengeodeweb_back/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def errorhandler(exception: HTTPException) -> tuple[dict[str, Any], int] | Respo
7777

7878

7979
@app.errorhandler(Exception)
80-
def handle_generic_exception(exception: Exception) -> Response:
80+
def handle_generic_exception(exception: Exception) -> Response:
8181
print("\033[91mError:\033[0m \033[91m" + str(exception) + "\033[0m", flush=True)
8282
return flask.make_response({"description": str(exception)}, 500)
8383

src/opengeodeweb_back/geode_objects/geode_regular_grid2d.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def __init__(self, regular_grid: og.RegularGrid2D | None = None) -> None:
2424
@classmethod
2525
def geode_object_type(cls) -> GeodeMeshType:
2626
return "RegularGrid2D"
27-
27+
2828
def inspect(self) -> og_inspector.SurfaceInspectionResult:
2929
return super().inspect()
3030

@@ -73,7 +73,6 @@ def save_light_viewable(self, filename_without_extension: str) -> str:
7373
return viewables.save_light_viewable_regular_grid2D(
7474
self.regular_grid, filename_without_extension
7575
)
76-
76+
7777
def cell_attribute_manager(self) -> og.AttributeManager:
7878
return self.regular_grid.cell_attribute_manager()
79-

src/opengeodeweb_back/geode_objects/geode_regular_grid3d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ def save_light_viewable(self, filename_without_extension: str) -> str:
7373

7474
def cell_attribute_manager(self) -> og.AttributeManager:
7575
return self.regular_grid.cell_attribute_manager()
76-
76+
7777
def inspect(self) -> og_inspector.SolidInspectionResult:
78-
return super().inspect()
78+
return super().inspect()

src/opengeodeweb_back/routes/blueprint_routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def cell_attribute_names() -> flask.Response:
291291
params = schemas.PolygonAttributeNames.from_dict(json_data)
292292
geode_object = geode_functions.load_geode_object(params.id)
293293
if not isinstance(geode_object, GeodeGrid2D | GeodeGrid3D):
294-
flask.abort(400, f"{params.id} is not a GeodeGrid")
294+
flask.abort(400, f"{params.id} is not a GeodeGrid")
295295
cell_attribute_names = geode_object.cell_attribute_manager().attribute_names()
296296
return flask.make_response(
297297
{

0 commit comments

Comments
 (0)