msmbuilder-legacy icon indicating copy to clipboard operation
msmbuilder-legacy copied to clipboard

Analytical Test Cases for Unit Tests

Open kyleabeauchamp opened this issue 12 years ago • 3 comments

I think we should include simple models where things like TPT, PCCA, MFPT, and eigenvalues can be calculated analytically. We would then use those as unit tests.

kyleabeauchamp avatar Oct 04 '13 14:10 kyleabeauchamp

PS think they would look something like this:

class SymmetricModel(object):
    def get_MFPT(self):
        pass
    def get_flux(self, A, B):
        pass
    def get_eigensystem(self):
        pass

kyleabeauchamp avatar Oct 04 '13 14:10 kyleabeauchamp

Here's my vote In terms of organization: we would create a separate directory test_systems that sits inside the msmbuilder source directory. In test_systems, we would have something like symmetric_model.py.

kyleabeauchamp avatar Oct 04 '13 15:10 kyleabeauchamp

We should also brainstorm for other models with analytical results. I think the obvious ones are:

  1. Symmetric Hub
  2. Linear model

I think a reasonable number of the calculations have been worked out in TJ's papers, as well. I also have various latex files with various analytical calculations that we can use.

kyleabeauchamp avatar Oct 04 '13 15:10 kyleabeauchamp