Skip to content

Commit

Permalink
Force initial sim directory selection after files have been identified.
Browse files Browse the repository at this point in the history
  • Loading branch information
michel4j committed Oct 17, 2018
1 parent 5b7c0b1 commit 2266b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mxdc/devices/detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,))
Expand Down

0 comments on commit 2266b88

Please sign in to comment.