COMPASS  5.4.4
End-to-end AO simulation tool using GPU acceleration
__init__.py
1 ''' @package shesha
2 Documentation for shesha.
3 
4 More details.
5 '''
6 
7 import subprocess, sys
8 
9 __version__ = "5.4.4"
10 
11 __api_version__ = "5.4.4"
12 
14  compass_package = subprocess.check_output('conda list compass | tail -n1',shell=True).decode(
15  sys.stdout.encoding)
16  if(compass_package.startswith('compass')):
17  # using conda package version
18  compass_version = compass_package.split()[1]
19  assert(__api_version__ == compass_version), 'SHESHA and COMPASS versions are not matching : %r != %r ' %\
20  (__api_version__, compass_version)
21 
def check_shesha_compass_versions()
Definition: __init__.py:13