From ba808fc27c2ff9ef1ffdc745838d43f91ef31949 Mon Sep 17 00:00:00 2001 From: martin Date: Tue, 4 Jun 2024 14:28:59 +0200 Subject: [PATCH] Fixed metadata Fixed Order --- converter_app/readers/hplc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/converter_app/readers/hplc.py b/converter_app/readers/hplc.py index 9fd1fd00..6db960a9 100644 --- a/converter_app/readers/hplc.py +++ b/converter_app/readers/hplc.py @@ -59,13 +59,14 @@ def prepare_tables(self): keys = list(self.df.keys()) waves = [x for x in keys if x.startswith('Wave')] - + waves.sort() time = self.df['time'] for wave_key in waves: wave = self.df[wave_key] table = self.append_table(tables) kv = wave_key.split('_') table['metadata'][kv[0]] = str(kv[1]) + table['metadata']['AllWaves'] = str(waves) for i, t in enumerate(time): table['rows'].append([t, float(wave[i])])