From 2266b88b534ed67d6008288c8f5e1dafea6f6006 Mon Sep 17 00:00:00 2001 From: Michel Fodje Date: Wed, 17 Oct 2018 15:38:49 -0600 Subject: [PATCH] Force initial sim directory selection after files have been identified. --- mxdc/devices/detector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mxdc/devices/detector.py b/mxdc/devices/detector.py index 19fb0415..7e45a0f8 100644 --- a/mxdc/devices/detector.py +++ b/mxdc/devices/detector.py @@ -41,7 +41,6 @@ def __init__(self, name, size, pixel_size=0.073242, images='/archive/staff/schoo self.sim_images_src = images self._datasets = {} self._powders = {} - self._select_dir() self._state = 'idle' self._bg_taken = False self._stopped = False @@ -59,6 +58,7 @@ def prepare_datasets(self): data_files = fnmatch.filter(files, data_root) if len(data_files) >= 60: self._datasets[key] = len(data_files) + self._select_dir() def initialize(self, wait=True): logger.debug('(%s) Initializing CCD ...' % (self.name,))