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
@@ -916,7 +916,10 @@ def generate_csv_contents_spz(target_slug, input_slug, started_at, stopped_at): @@ -916,7 +916,10 @@ def generate_csv_contents_spz(target_slug, input_slug, started_at, stopped_at):
916 list_df = [] 916 list_df = []
917 for _name, _id in parameters_dict.items(): 917 for _name, _id in parameters_dict.items():
918 hp_logger.debug(f"Getting parameter id '{_id}' for '{_name}'") 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 if _name == 'xy_v': 923 if _name == 'xy_v':
921 _df = _df.rename(columns={_df.columns[0]: 'vrad', _df.columns[1]: 'vtan'}) 924 _df = _df.rename(columns={_df.columns[0]: 'vrad', _df.columns[1]: 'vtan'})
922 elif _name == 'xy_hee': 925 elif _name == 'xy_hee':