diff --git a/ArchiveExtractor/Core.py b/ArchiveExtractor/Core.py index 2ac2d845b941579bf44b809b4f8a25a97c716cae..92f5bd00785bc569042af2f260d8645e0e6a2a91 100644 --- a/ArchiveExtractor/Core.py +++ b/ArchiveExtractor/Core.py @@ -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) diff --git a/ArchiveExtractor/__init__.py b/ArchiveExtractor/__init__.py index 1b498e17205d668d19676aa53478ea427bc960ca..9921028d8f5cc1802ad6f7f47686aa9cc42b9813 100644 --- a/ArchiveExtractor/__init__.py +++ b/ArchiveExtractor/__init__.py @@ -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", ] diff --git a/setup.py b/setup.py index 4861c52116849aa53c939bb523e2d9741749bc6b..6d001a65761825566952cc05cb815bedf00aba92 100755 --- a/setup.py +++ b/setup.py @@ -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",