Skip to content

Commit 1b30149

Browse files
committed
Merge main
2 parents afbc024 + 25e0074 commit 1b30149

File tree

30 files changed

+274
-435
lines changed

30 files changed

+274
-435
lines changed

.bumpclient.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.bumpversion]
2-
current_version = "0.17.10"
2+
current_version = "0.18.0"
33
commit = true
44
tag = false
55

.bumpversion.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.bumpversion]
2-
current_version = "0.17.10"
2+
current_version = "0.18.0"
33
commit = true
44
tag = true
55

Helm/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
name: murfey-services
33
description: Umbrella Helm chart for deploying the servers and daemons needed to enable Murfey to transfer and process data
4-
version: 0.17.10
4+
version: 0.18.0
55
dependencies:
66
- name: murfey-instrument-server-clem
77
- name: murfey-instrument-server-tem
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
apiVersion: v1
22
name: murfey-instrument-server-clem
33
description: Helm chart for deploying a Murfey instrument server, which executes orders to detect, modify, and transfer files on the instrument PC, and notifies the backend server about transferred files
4-
version: 0.17.10
4+
version: 0.18.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
apiVersion: v1
22
name: murfey-instrument-server-tem
33
description: Helm chart for deploying a Murfey instrument server, which executes orders to detect, modify, and transfer files on the instrument PC, and notifies the backend server about transferred files
4-
version: 0.17.10
4+
version: 0.18.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
apiVersion: v1
22
name: murfey-rsync
33
description: Helm chart for deploying an rsync daemon, which is responsible for executing the transfer of files from the client storage directory to the server storage system
4-
version: 0.17.10
4+
version: 0.18.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
apiVersion: v1
22
name: murfey-server
33
description: Helm chart for deploying a Murfey backend server, which is responsible for orchestrating the data transfer and processing workflow between the client PC and the storage system
4-
version: 0.17.10
4+
version: 0.18.0

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ requires = [
77

88
[project]
99
name = "murfey"
10-
version = "0.17.10"
10+
version = "0.18.0"
1111
description = "Client-Server architecture hauling Cryo-EM data"
1212
readme = "README.md"
1313
keywords = [

src/murfey/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from __future__ import annotations
22

3-
__version__ = "0.17.10"
4-
__supported_client_version__ = "0.17.10"
3+
__version__ = "0.18.0"
4+
__supported_client_version__ = "0.18.0"

src/murfey/client/__init__.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,20 @@ def run():
275275
rich_handler.setLevel(logging.DEBUG if args.debug else logging.INFO)
276276

277277
# Set up websocket app and handler
278-
client_id = requests.get(
278+
client_id_response = requests.get(
279279
f"{murfey_url.geturl()}{url_path_for('session_control.router', 'new_client_id')}"
280-
).json()
280+
)
281+
if client_id_response.status_code == 401:
282+
exit(
283+
"This instrument is not authorised to run the TUI app; please use the "
284+
"Murfey web UI instead"
285+
)
286+
elif client_id_response.status_code != 200:
287+
exit(
288+
"Unable to establish connection to Murfey server: \n"
289+
f"{client_id_response.json()}"
290+
)
291+
client_id: dict = client_id_response.json()
281292
ws = murfey.client.websocket.WSApp(
282293
server=args.server,
283294
id=client_id["new_id"],

0 commit comments

Comments
 (0)