Skip to content
Snippets Groups Projects
Commit d188d340 authored by BRONES Romain's avatar BRONES Romain
Browse files

fix retreiving of read;write tuple

* This is the new way the TTS returns read write values
parent 6393673a
No related branches found
No related tags found
No related merge requests found
......@@ -103,6 +103,11 @@ def _extract_scalar(attribute, method, date1, date2, db, dtype):
return None
# Detect if values contains a tuple read;write
if ';' in _value[0]:
logger.warning("Retrieved values are in read;write format. Keep only the read value")
_value = [_v.split(';')[0] for _v in _value]
# Transform to datetime - value arrays
if dtype is bool:
_value = aea._cast_bool(_value)
......
......@@ -18,7 +18,7 @@ Quick usage in ipython shell:
"""
# NB: Also change version number in setup.py
__version__ = "2.4.3"
__version__ = "2.4.4"
__all__ = ["Access", ]
......
......@@ -3,7 +3,7 @@
from distutils.core import setup
setup(name='ArchiveExtractor',
version='2.4.3', # NB Also change version number in __init__.py
version='2.4.4', # NB Also change version number in __init__.py
description='Python module for extracting data from Archive Extractor Tango Device.',
url='https://gitlab.synchrotron-soleil.fr/dg/archiveextractor',
license="GNU-GPL-v3",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment