Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
The instructions below are outdated and do not apply anymore (since 2011-12-21). They are kept for historical purposes. See UnitTests for explanations.
MDAnalysis contains a large number of tests of the core functionality, described in UnitTests. For many tests we are using real simulation trajectories and structures to check that everything is working as expected. These tests make it very unlikely that new code or fixes introduce new bugs. The test trajectories are also used in examples throughout the documentation, allowing anyone to try out MDAnalysis right away.
The test trajectories are fairly big (about 20 GB) so we put them in a package separate from MDAnalysis. If you want to run the UnitTests or try out the examples then you must install MDAnalysisTestData (as described in INSTALL.
tar -zxvf MDAnalysisTestData-0.7.4.tar.gz cd MDAnalysisTestData-0.7.4 python setup.py install
You might also be able to directly install from the web if you have easy_install available
Once both MDAnalysis and MDAnalysisTestData are installed you can access the bundles files within the
MDAnalysis.tests.datafiles module. For instance, on my machine
>>> from MDAnalysis.tests.datafiles import PSF,DCD >>> print PSF /Users/oliver/.local/lib/python2.6/site-packages/MDAnalysisTestData-0.7.4-py2.6.egg/MDAnalysisTestData/data/adk.psf >>> print DCD /Users/oliver/.local/lib/python2.6/site-packages/MDAnalysisTestData-0.7.4-py2.6.egg/MDAnalysisTestData/data/adk_dims.dcd >>> import MDAnalysis >>> u = MDAnalysis.Universe(PSF,DCD) >>> print u <Universe with 3341 atoms>