@@ -140,38 +140,6 @@ def get_shapes():
140
140
resp .status_code = 200
141
141
return resp
142
142
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
-
175
143
@bp .route ("/shapes" , methods = ["POST" ])
176
144
@server .require_control
177
145
@server .restrict
@@ -226,18 +194,6 @@ def rotate_to():
226
194
227
195
return resp
228
196
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
-
241
197
@bp .route ("/centring/start_click_centring" , methods = ["PUT" ])
242
198
@server .require_control
243
199
@server .restrict
@@ -311,14 +267,6 @@ def accept_centring():
311
267
HWR .beamline .diffractometer .accept_centring ()
312
268
return Response (status = 200 )
313
269
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
-
322
270
@bp .route ("/movetobeam" , methods = ["PUT" ])
323
271
@server .require_control
324
272
@server .restrict
0 commit comments