Check install and run testsΒΆ

The emd.support submodule contains a few functions relating to the installation and testing of EMD on your system. Most users will not need to use these functions most of the time but they can be helpful for checking that EMD is properly installed.

Firstly, we can use emd.support.get_installed_version to confirm which version of EMD we have installed.

# sphinx_gallery_thumbnail_path = '_static/emd_pytest_thumb.png'

import emd

print(emd.support.get_installed_version())

Out:

0.3.2

Secondly, we can identify where the EMD files are installed on the computer by calling emd.support.get_install_dir. This can be useful if you have a couple of EMD versions and want to be sure which is currently in use.

print(emd.support.get_install_dir())

Out:

/home/docs/checkouts/readthedocs.org/user_builds/emd/envs/v0.3.2/lib/python3.7/site-packages/emd-0.3.2-py3.7.egg/emd

Finally, if you have installed EMD from source (rather than via conda or pypi) you can run the test suit directly from the support module.

print(emd.support.run_tests())

Out:

None

Total running time of the script: ( 0 minutes 0.018 seconds)

Gallery generated by Sphinx-Gallery