From a7c0ef578ada4183300ab27d0592f6d146b7f12a Mon Sep 17 00:00:00 2001 From: Jelle Teijema Date: Mon, 12 Dec 2022 23:12:53 +0100 Subject: [PATCH] Remove dataset and run_id from merge metrics table (#12) --- .../makita/templates/script_merge_metrics.py.template | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/asreviewcontrib/makita/templates/script_merge_metrics.py.template b/asreviewcontrib/makita/templates/script_merge_metrics.py.template index 23b3387b..73598c17 100644 --- a/asreviewcontrib/makita/templates/script_merge_metrics.py.template +++ b/asreviewcontrib/makita/templates/script_merge_metrics.py.template @@ -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 @@ -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__":