def _get_center_guess(self): path = self.stage_map.center_guess_path if os.path.isfile(path): try: guess = pathtolist(path) return csv_to_floats(guess[0]) except BaseException as e: self.debug( 'Failed parsing center guess file {}. error={}'.format( path, e))
def _execute(self): path = os.path.join(paths.scripts_dir, 'uvlaser.txt') self.info('starting LaserScript') for i, line in enumerate(pathtolist(path)): if self._cancel: self.debug('Script Canceled') break line = line.strip() self.debug('execute {:02n}:'.format(i)) self._execute_line(line) else: self.info('Script completed')
def _load_dump_script(self): p = os.path.join(paths.device_dir, 'furnace', 'dump_sequence.txt') return pathtolist(p)
def _load_runids(self): runids = pathtolist(self.path) return runids