From 989594781c01000ff53d60e66b420fd9a757c117 Mon Sep 17 00:00:00 2001 From: Elias Chetouane <elias.chetouane@univ-grenoble-alpes.fr> Date: Mon, 19 Feb 2024 11:09:47 +0100 Subject: [PATCH] =?UTF-8?q?Cr=C3=A9ation=20du=20fichier=20contenant=20le?= =?UTF-8?q?=20nombre=20total=20de=20dois=20pour=20affichage=20sur=20le=20s?= =?UTF-8?q?ite=20web.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1-enrich-with-datacite/concatenate-enrich-dois.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/1-enrich-with-datacite/concatenate-enrich-dois.py b/1-enrich-with-datacite/concatenate-enrich-dois.py index a96a44f..c1ff64a 100644 --- a/1-enrich-with-datacite/concatenate-enrich-dois.py +++ b/1-enrich-with-datacite/concatenate-enrich-dois.py @@ -59,6 +59,10 @@ if temp_rows : df_out.to_csv("../dois-uga.csv", index = False) print(f"\n\nnb of doi exported \t{len(df_out)}") + # write the number of dois found in a file to display on the website + with open("nb-dois.txt", 'w') as f : + f.write(str(len(df_out))) + ## output another csv with datacite client and number of datasets df_client_raw = df_out["client"].value_counts().to_frame() -- GitLab