Exemple #1
0
 def _parse_method(self):
     try:
         method_count = self._source.InstrumentMethodsCount
         if method_count == 0:
             return _InstrumentMethod('')
         # the data acquisition method should be the last method
         return _InstrumentMethod(self._source.GetInstrumentMethod(method_count - 1))
     except NullReferenceException:   # pylint: disable=broad-except
         return _InstrumentMethod('')
 def _parse_method(self):
     try:
         return _InstrumentMethod(self._source.GetInstrumentMethod(0))
     except NullReferenceException:
         return _InstrumentMethod('')
Exemple #3
0
 def _parse_method(self):
     return _InstrumentMethod(self._source.GetInstMethod())
 def _parse_method(self):
     try:
         return _InstrumentMethod(self._source.GetInstrumentMethod(0))
     except NullReferenceException:   # pylint: disable=broad-except
         return _InstrumentMethod('')