From ea48da748902a6cbad670d3eb54d821786779705 Mon Sep 17 00:00:00 2001 From: Richard Hitier Date: Fri, 27 Oct 2023 15:59:39 +0200 Subject: [PATCH] Go on building dataset when yml param is wrong --- web/run.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/run.py b/web/run.py index 33c9cd7..dbb512b 100755 --- a/web/run.py +++ b/web/run.py @@ -916,7 +916,10 @@ def generate_csv_contents_spz(target_slug, input_slug, started_at, stopped_at): list_df = [] for _name, _id in parameters_dict.items(): hp_logger.debug(f"Getting parameter id '{_id}' for '{_name}'") - _df = amda.get_data(_id, started_at, stopped_at).to_dataframe() + amda_dataset = amda.get_data(_id, started_at, stopped_at) + if amda_dataset is None: + continue + _df = amda_dataset.to_dataframe() if _name == 'xy_v': _df = _df.rename(columns={_df.columns[0]: 'vrad', _df.columns[1]: 'vtan'}) elif _name == 'xy_hee': -- libgit2 0.21.2