Commit ea48da748902a6cbad670d3eb54d821786779705

Authored by hitier
1 parent c992a282
Exists in rhitier-dev

Go on building dataset when yml param is wrong

Showing 1 changed file with 4 additions and 1 deletions   Show diff stats
web/run.py
... ... @@ -916,7 +916,10 @@ def generate_csv_contents_spz(target_slug, input_slug, started_at, stopped_at):
916 916 list_df = []
917 917 for _name, _id in parameters_dict.items():
918 918 hp_logger.debug(f"Getting parameter id '{_id}' for '{_name}'")
919   - _df = amda.get_data(_id, started_at, stopped_at).to_dataframe()
  919 + amda_dataset = amda.get_data(_id, started_at, stopped_at)
  920 + if amda_dataset is None:
  921 + continue
  922 + _df = amda_dataset.to_dataframe()
920 923 if _name == 'xy_v':
921 924 _df = _df.rename(columns={_df.columns[0]: 'vrad', _df.columns[1]: 'vtan'})
922 925 elif _name == 'xy_hee':
... ...