Skip to content

Commit

Permalink
Remove dataset and run_id from merge metrics table (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
jteijema authored Dec 12, 2022
1 parent 5fd40ed commit a7c0ef5
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ def create_table_state_metrics(states):
data = json.load(f)['data']['items']
values = {}
values['file_name'] = Path(state).name
values['dataset'] = Path(state).parent.name
values['run_id'] = str.split(Path(state).stem, '_')[-1]
for item in data:
if item['id'] == 'td':
continue
Expand All @@ -48,7 +46,7 @@ def create_table_state_metrics(states):
values[item['id']] = item['value']
metrics.append(values)

return pd.DataFrame(metrics, index=[Path(state).stem for state in states])
return pd.DataFrame(metrics)


if __name__ == "__main__":
Expand Down

0 comments on commit a7c0ef5

Please sign in to comment.