Skip to content

Commit 24d6628

Browse files
Reset tilt series lengths on repeated tilts, to avoid repeat processing (#674)
When a tilt series is cancelled on the microscope, an mdoc gets written and we mark the tilt series as complete. The current behaviour is then that we process the tomogram and do so again for every newly found tilt. This PR changes the code to remove knowledge of tilt series length when a new tilt is found (i.e. when length exceeds the number in the mdoc). This then means we will not launch processing again until the mdoc is re-written with the correct length. Should reduce the number of processing times from ntilts+1 to 2. Will still need some work on the processing side as the processed star files contain duplicated tomograms
1 parent 3756332 commit 24d6628

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/murfey/client/contexts/tomo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,11 @@ def _add_tilt(
267267
[str(file_transferred_to), tilt_angle]
268268
]
269269
if tilt_series in self._completed_tilt_series:
270-
logger.info(
270+
logger.warning(
271271
f"Tilt series {tilt_series} was previously thought complete but now {file_path} has been seen"
272272
)
273273
self._completed_tilt_series.remove(tilt_series)
274+
self._tilt_series_sizes[tilt_series] = 0
274275
rerun_data = {
275276
"session_id": environment.murfey_session,
276277
"tag": tilt_series,

src/murfey/server/api/workflow.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,7 @@ def register_tilt_series_for_rerun(
869869
).all()
870870
for ts in tilt_series_db:
871871
ts.processing_requested = False
872+
ts.tilt_series_length = -1
872873
db.add(ts)
873874
db.commit()
874875

0 commit comments

Comments
 (0)