Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1""" 

2Exceptions for the general error types that can occur either while 

3setting up the calculator, which requires constructing KIM API C++ 

4objects, or while running a simulation 

5""" 

6from ase.calculators.calculator import CalculatorError 

7 

8 

9class KIMCalculatorError(CalculatorError): 

10 """ 

11 Indicates an error occurred in initializing an applicable 

12 calculator. This either results from incompatible combinations of 

13 argument values passed to kim.KIM(), or from models that are 

14 incompatible in some way with this calculator 

15 """ 

16 

17 pass 

18 

19 

20class KIMModelNotFound(CalculatorError): 

21 """ 

22 Requested model cannot be found in any of the KIM API model 

23 collections on the system 

24 """ 

25 

26 pass 

27 

28 

29class KIMModelInitializationError(CalculatorError): 

30 """ 

31 KIM API Model object or ComputeArguments object could not be 

32 successfully created 

33 """ 

34 

35 pass 

36 

37 

38class KimpyError(CalculatorError): 

39 """ 

40 A call to a kimpy function resulted in a RuntimeError being raised 

41 """ 

42 

43 pass 

44 

45 

46class KIMModelParameterError(CalculatorError): 

47 """ 

48 An attempt to either access or mutate a KIM portable model 

49 parameter was unsuccessful 

50 """ 

51 

52 pass