IMP
2.2.1
The Integrative Modeling Platform
IMP Mainpage
All IMP Modules
Related Pages
Modules
Namespaces
Classes
Files
Examples
Indexes
File List
File Members
modeller/_version_check.py
1
def
check_version(myversion):
2
def
_check_one(name, expected, found):
3
if
expected != found:
4
message =
"Expected version "
+ expected +
" but got "
+ found +
" when loading module "
+ name +
". Please make sure IMP is properly built and installed and that matching python and C++ libraries are used."
5
raise
RuntimeError(message)
6
version =
'2.2.1'
7
_check_one(
'2.2.1'
, version, myversion)
8