Skip to content

Commit 54c4272

Browse files
Start transfer for all tomo multigrid slots with sessions (#793)
Previously we only started tomo multigrid transfer when an mdoc appears. This changes it to start when a Session.dm appears so that all search maps get transferred, but meaning that empty cassette slots do not create a raw. I also put a name on the analysers as this will help with debugging when we come to attempt the full tomo multigrid changes described in #792
1 parent 0453603 commit 54c4272

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/murfey/client/analyser.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ def __init__(
6363
self._acquisition_software = ""
6464
self._context: Context | None = None
6565
self.queue: queue.Queue = queue.Queue()
66-
self.thread = threading.Thread(name="Analyser", target=self._analyse_in_thread)
66+
self.thread = threading.Thread(
67+
name=f"Analyser {basepath_local}", target=self._analyse_in_thread
68+
)
6769
self._stopping = False
6870
self._halt_thread = False
6971
self._murfey_config = (

src/murfey/client/watchdir_multigrid.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ def _process(self):
110110
sample_dirs = list(d.glob("Sample*"))
111111
if d.is_dir() and len(sample_dirs):
112112
for sample in sample_dirs:
113-
if len(list(sample.glob("*.mdoc"))):
113+
if (sample / "Session.dm").is_file():
114+
# Transfer only folders where a tomo session exists
114115
if sample not in self._seen_dirs:
115116
self._handle_metadata(
116117
sample,

0 commit comments

Comments
 (0)