simulation

This commit is contained in:
2026-05-05 14:59:09 +02:00
parent 5c78c042a4
commit d946de7b63
5 changed files with 15 additions and 30 deletions
+7 -2
View File
@@ -172,11 +172,16 @@ class MultiWellManager:
if self.stop_playing.is_set():
break
self.cnc_controller.move_to(wl.x, wl.y, feed=wl.multiwell.feed)
self._grid_scanning_capture(experiment, wl, simulate=simulate)
## change file
if self.process.conf.capture_type == 'file':
self.process.cam._error_occured = True
vf = settings.MEDIA_ROOT / 'simulation' / f'{wl.name}.mp4'
if vf.exists():
self.process.cam._video_file = str(vf)
self.process.cam._error_occured = True
self._grid_scanning_capture(experiment, wl, simulate=simulate)
logger.info(f"Scan terminé — retour à l'origine (X={xnext:.1f} Y={ynext:.1f})")
self.cnc_controller.move_to(xnext, ynext, feed=multiwell.feed*2)