Skip to content
Snippets Groups Projects
Commit 5a9552f9 authored by Mauro Rovezzi's avatar Mauro Rovezzi
Browse files

fix bug skip generic read error

parent ecade30e
No related branches found
No related tags found
No related merge requests found
__author__ = "Mauro Rovezzi"
__email__ = "mauro.rovezzi@esrf.fr"
__version__ = "25.1.0"
__version__ = "25.1.1"
__license__ = "GPLv3"
__copyright__ = "2024 -- present, Mauro Rovezzi (CNRS/UGA)"
......@@ -427,7 +427,7 @@ def load_data(
merge: bool = False,
**kws: Dict[str, Any],
):
"""Load data from disk into the data model (=memory)
"""Load data from disk into the data model (=memory).
Parameters
----------
......@@ -450,6 +450,7 @@ def load_data(
Returns
-------
None
"""
cnts = session.counters
cnts_fluo = cnts.fluo_corr if use_fluo_corr else cnts.fluo_roi
......@@ -476,7 +477,7 @@ def load_data(
i2 = ds.get_array(i2sig)[iskip:istrip]
fluo0 = ds.get_array(cnts_fluo[0])[iskip:istrip]
stime = ds.get_array(cnts.time)[iskip:istrip]
except ValueError as err:
except Exception as err:
scan.flag = 0
_logger.warning(
f"{infolab}: not loaded and flagged as bad scan -> probably something wrong with this scan?"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment