Commit ed34e67d authored by Vincent Michel's avatar Vincent Michel
Browse files

Add a version check (handel >= 1.2.19) and a user warning

parent 0f5e36fe
......@@ -3,6 +3,7 @@
from __future__ import absolute_import
import os
import warnings
from functools import reduce
import numpy
......@@ -37,8 +38,8 @@ __all__ = ['init', 'init_handel', 'exit',
'get_master_channels', 'get_trigger_channels',
'set_acquisition_value', 'get_acquisition_value',
'remove_acquisition_value', 'apply_acquisition_values',
'get_config_files', 'get_config']
'get_handel_version', 'get_config_files', 'get_config',
......@@ -681,3 +682,13 @@ def get_config(*path):
filename = os.path.join(*path)
with open(filename) as f:
return parse_xia_ini_file(
# Check version at import time
if get_handel_version() < (1, 2, 19):
The current handel version is older than 1.2.19.
This might cause bugs, especially with the FalconX.
Please consider upgrading to a more recent version.""")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment