Skip to content

Commit f611ea3

Browse files
Removed unused sampleview routes
1 parent 72c15b4 commit f611ea3

File tree

1 file changed

+0
-52
lines changed

1 file changed

+0
-52
lines changed

mxcubeweb/routes/samplecentring.py

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -140,38 +140,6 @@ def get_shapes():
140140
resp.status_code = 200
141141
return resp
142142

143-
@bp.route("/shapes/<sid>", methods=["GET"])
144-
@server.restrict
145-
def get_shape_with_sid(sid):
146-
"""
147-
Retrieve requested shape information.
148-
:response Content-type: application/json, the stored centred positions.
149-
:statuscode: 200: no error
150-
:statuscode: 409: shape not found
151-
"""
152-
shape = app.sample_view.get_shapes()
153-
154-
if shape is not None:
155-
resp = jsonify(shape)
156-
resp.status_code = 200
157-
return resp
158-
return Response(status=409)
159-
160-
@bp.route("/shapes/<sid>", methods=["POST"])
161-
def shape_add_result(sid):
162-
"""
163-
Update shape result data.
164-
:parameter shape_data: dict with result info (result value dict, data file path)
165-
:response Content-type: application/json, response status.
166-
:statuscode: 200: no error
167-
:statuscode: 409: error
168-
"""
169-
params = request.get_json()
170-
result = params.get("result")
171-
data_file = params.get("data_file")
172-
app.sample_view.shape_add_result(sid, result, data_file)
173-
return Response(status=200)
174-
175143
@bp.route("/shapes", methods=["POST"])
176144
@server.require_control
177145
@server.restrict
@@ -226,18 +194,6 @@ def rotate_to():
226194

227195
return resp
228196

229-
@bp.route("/centring/startauto", methods=["GET"])
230-
@server.require_control
231-
@server.restrict
232-
def centre_auto():
233-
"""
234-
Start automatic (lucid) centring procedure.
235-
:statuscode: 200: no error
236-
:statuscode: 409: error
237-
"""
238-
app.sample_view.start_auto_centring()
239-
return Response(status=200)
240-
241197
@bp.route("/centring/start_click_centring", methods=["PUT"])
242198
@server.require_control
243199
@server.restrict
@@ -311,14 +267,6 @@ def accept_centring():
311267
HWR.beamline.diffractometer.accept_centring()
312268
return Response(status=200)
313269

314-
@bp.route("/centring/reject", methods=["PUT"])
315-
@server.require_control
316-
@server.restrict
317-
def reject_centring():
318-
"""Reject the centring position."""
319-
app.sample_view.reject_centring()
320-
return Response(status=200)
321-
322270
@bp.route("/movetobeam", methods=["PUT"])
323271
@server.require_control
324272
@server.restrict

0 commit comments

Comments
 (0)