Skip to content

Commit

Permalink
Fixed metadata
Browse files Browse the repository at this point in the history
Fixed Order
  • Loading branch information
StarmanMartin authored and cllde8 committed Jun 5, 2024
1 parent b44c8c2 commit bccf784
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion converter_app/readers/hplc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])])

Expand Down

0 comments on commit bccf784

Please sign in to comment.