Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions mxcubeweb/routes/beamline.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
Response,
jsonify,
)
from mxcubecore import HardwareRepository as HWR


def init_route(app, server, url_prefix):
Expand All @@ -16,16 +15,6 @@ def init_route(app, server, url_prefix):
def beamline_get_all_attributes():
return jsonify(app.beamline.beamline_get_all_attributes())

@bp.route("/datapath", methods=["GET"])
@server.restrict
def beamline_get_data_path():
"""
Retrieve data directory from the session hwobj,
this is specific for each beamline.
"""
data = HWR.beamline.session.get_base_image_directory()
return jsonify({"path": data})

@bp.route("/prepare_beamline", methods=["PUT"])
@server.require_control
@server.restrict
Expand Down
11 changes: 0 additions & 11 deletions test/test_beamline_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,3 @@ def test_get_beam_info(client):
assert isinstance(data["position"][1], float)
assert isinstance(data["size_x"], float)
assert isinstance(data["size_y"], float)


def test_get_data_path(client):
"""
Retrieve data path, this is specific for each beamline.
"""

resp = client.get("/mxcube/api/v0.1/beamline/datapath")
data = json.loads(resp.data)
assert isinstance(data["path"], str)
assert len(data) > 0
Loading