Skip to content

Commit fe36074

Browse files
SpliiTgithub-actions[bot]
authored andcommitted
Apply prepare changes
1 parent 1e7ff0d commit fe36074

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,3 @@ werkzeug==3.1.2
6060
# flask
6161
# flask-cors
6262

63-
opengeodeweb-microservice==1.*,>=1.0.7rc1

src/opengeodeweb_back/routes/create/blueprint_create.py

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def create_aoi() -> flask.Response:
6767
)
6868
return flask.make_response(result, 200)
6969

70+
7071
@routes.route(
7172
schemas_dict["create_voi"]["route"],
7273
methods=schemas_dict["create_voi"]["methods"],
@@ -81,29 +82,33 @@ def create_voi() -> flask.Response:
8182
flask.abort(404, f"AOI with id {params.aoi_id} not found")
8283

8384
aoi_object = geode_functions.load_data(params.aoi_id)
84-
85+
8586
nb_points = aoi_object.nb_vertices()
8687

8788
edged_curve = geode_functions.geode_object_class("EdgedCurve3D").create()
8889
builder = geode_functions.create_builder("EdgedCurve3D", edged_curve)
8990
builder.set_name(params.name)
9091

9192
for point_id in range(nb_points):
92-
aoi_point= aoi_object.point(point_id)
93-
builder.create_point(opengeode.Point3D([aoi_point.value(0), aoi_point.value(1), params.z_min]))
94-
93+
aoi_point = aoi_object.point(point_id)
94+
builder.create_point(
95+
opengeode.Point3D([aoi_point.value(0), aoi_point.value(1), params.z_min])
96+
)
97+
9598
for point_id in range(nb_points):
96-
aoi_point= aoi_object.point(point_id)
97-
builder.create_point(opengeode.Point3D([aoi_point.value(0), aoi_point.value(1), params.z_max]))
99+
aoi_point = aoi_object.point(point_id)
100+
builder.create_point(
101+
opengeode.Point3D([aoi_point.value(0), aoi_point.value(1), params.z_max])
102+
)
98103

99104
for point_id in range(nb_points):
100105
next_point = (point_id + 1) % nb_points
101106
builder.create_edge_with_vertices(point_id, next_point)
102-
builder.create_edge_with_vertices(point_id+nb_points, next_point+nb_points)
103-
builder.create_edge_with_vertices(point_id, point_id+nb_points)
107+
builder.create_edge_with_vertices(point_id + nb_points, next_point + nb_points)
108+
builder.create_edge_with_vertices(point_id, point_id + nb_points)
104109

105110
result = utils_functions.generate_native_viewable_and_light_viewable_from_object(
106111
geode_object="EdgedCurve3D",
107112
data=edged_curve,
108113
)
109-
return flask.make_response(result, 200)
114+
return flask.make_response(result, 200)

0 commit comments

Comments
 (0)