Exemplo n.º 1
0
    def _convert_detectors(self, options):
        if not _Converter._convert_detectors(self, options):
            return False

        dets = list(options.detectors.iterclass(TrajectoryDetector))
        if not dets:
            self._warn('A trajectory detector must be defined',
                       "This options definition was removed.")
            return False

        return True
    def _convert_detectors(self, options):
        if not _Converter._convert_detectors(self, options):
            return False

        dets = list(options.detectors.iterclass(TrajectoryDetector))
        if not dets:
            self._warn('A trajectory detector must be defined',
                       "This options definition was removed.")
            return False

        return True