Skip to content

Commit ff10009

Browse files
committed
Merged recent changes from 'main' branch
2 parents 4a0f1dc + aceca04 commit ff10009

File tree

14 files changed

+120
-38
lines changed

14 files changed

+120
-38
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.7"
2+
current_version = "0.17.8"
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.7"
2+
current_version = "0.17.8"
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.7
4+
version: 0.17.8
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.7
4+
version: 0.17.8
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.7
4+
version: 0.17.8
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.7
4+
version: 0.17.8

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.7"
10+
version = "0.17.8"
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.7"
4-
__supported_client_version__ = "0.17.7"
3+
__version__ = "0.17.8"
4+
__supported_client_version__ = "0.17.8"

src/murfey/instrument_server/api.py

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def check_token(session_id: MurfeySessionID):
138138

139139

140140
@router.post("/sessions/{session_id}/multigrid_watcher")
141-
def start_multigrid_watcher(
141+
def setup_multigrid_watcher(
142142
session_id: MurfeySessionID, watcher_spec: MultigridWatcherSpec
143143
):
144144
if controllers.get(session_id) is not None:
@@ -182,6 +182,13 @@ def start_multigrid_watcher(
182182
watchers[session_id].subscribe(
183183
controllers[session_id]._multigrid_watcher_finalised, final=True
184184
)
185+
return {"success": True}
186+
187+
188+
@router.post("/sessions/{session_id}/start_multigrid_watcher")
189+
def start_multigrid_watcher(session_id: MurfeySessionID):
190+
if watchers.get(session_id) is None:
191+
return {"success": False}
185192
watchers[session_id].start()
186193
return {"success": True}
187194

@@ -232,7 +239,7 @@ def restart_rsyncer(session_id: MurfeySessionID, rsyncer_source: RsyncerSource):
232239
return {"success": True}
233240

234241

235-
class RSyncerInfo(BaseModel):
242+
class ObserverInfo(BaseModel):
236243
source: str
237244
num_files_transferred: int
238245
num_files_in_queue: int
@@ -241,11 +248,11 @@ class RSyncerInfo(BaseModel):
241248

242249

243250
@router.get("/sessions/{session_id}/rsyncer_info")
244-
def get_rsyncer_info(session_id: MurfeySessionID) -> list[RSyncerInfo]:
251+
def get_rsyncer_info(session_id: MurfeySessionID) -> list[ObserverInfo]:
245252
info = []
246253
for k, v in controllers[session_id].rsync_processes.items():
247254
info.append(
248-
RSyncerInfo(
255+
ObserverInfo(
249256
source=str(k),
250257
num_files_transferred=v._files_transferred,
251258
num_files_in_queue=v.queue.qsize(),
@@ -256,6 +263,22 @@ def get_rsyncer_info(session_id: MurfeySessionID) -> list[RSyncerInfo]:
256263
return info
257264

258265

266+
@router.get("/sessions/{session_id}/analyser_info")
267+
def get_analyser_info(session_id: MurfeySessionID) -> list[ObserverInfo]:
268+
info = []
269+
for k, v in controllers[session_id].analysers.items():
270+
info.append(
271+
ObserverInfo(
272+
source=str(k),
273+
num_files_transferred=0,
274+
num_files_in_queue=v.queue.qsize(),
275+
alive=v.thread.is_alive(),
276+
stopping=v._stopping,
277+
)
278+
)
279+
return info
280+
281+
259282
class ProcessingParameters(BaseModel):
260283
gain_ref: str
261284
dose_per_frame: Optional[float] = None

src/murfey/server/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1948,7 +1948,9 @@ def _register_bfactors(message: dict, _db=murfey_db, demo: bool = False):
19481948

19491949
if message["symmetry"] != relion_params.symmetry:
19501950
# Currently don't do anything with a symmetrised re-run of the refinement
1951-
logger.info(f"Recieved symmetrised structure of {message['symmetry']}")
1951+
logger.info(
1952+
f"Received symmetrised structure of {sanitise(message['symmetry'])}"
1953+
)
19521954
return True
19531955

19541956
if not feedback_params.hold_refine:

0 commit comments

Comments
 (0)