Methods and classes for testing the IMP kernel and modules.
Classes | |
| class | ApplicationTestCase |
| Super class for simple IMP application test cases. More... | |
| class | DirectorObjectChecker |
| Check to make sure the number of director references is as expected. More... | |
| class | RefCountChecker |
| Check to make sure the number of C++ object references is as expected. More... | |
| class | TestCase |
| Super class for IMP test cases. More... | |
| class | TestRefiner |
| A class which makes sure that the right particles are passed back. More... | |
Functions | |
| def | numerical_derivative |
Calculate the derivative of the single-value function func at point val. | |
| def | xyz_numerical_derivatives |
Calculate the x,y and z derivatives of model's scoring function on the xyz particle. | |
| def IMP.test.numerical_derivative | ( | func, | |
| val, | |||
| step | |||
| ) |
Calculate the derivative of the single-value function func at point val.
The derivative is calculated using simple finite differences starting with the given step; Richardson extrapolation is then used to extrapolate the derivative at step=0.
| def IMP.test.xyz_numerical_derivatives | ( | model, | |
| xyz, | |||
| step | |||
| ) |
Calculate the x,y and z derivatives of model's scoring function on the xyz particle.
The derivatives are approximated numerically using the numerical_derivatives() function.