From d236bb73d3363f3f0df83bb60098dd4733b346ee Mon Sep 17 00:00:00 2001 From: Elias Chetouane <elias.chetouane@univ-grenoble-alpes.fr> Date: Mon, 19 Feb 2024 13:33:26 +0100 Subject: [PATCH] Modification d'indentation. --- 1-enrich-with-datacite/concatenate-enrich-dois.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/1-enrich-with-datacite/concatenate-enrich-dois.py b/1-enrich-with-datacite/concatenate-enrich-dois.py index 428a8cc..499f23d 100644 --- a/1-enrich-with-datacite/concatenate-enrich-dois.py +++ b/1-enrich-with-datacite/concatenate-enrich-dois.py @@ -60,8 +60,8 @@ if temp_rows : 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))) + with open("nb-dois.txt", 'w') as outf : + outf.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() @@ -81,7 +81,6 @@ if temp_rows : df_client_raw["name"] = client_names df_client_raw["year"] = client_years df_client_raw["url"] = client_urls - print("df_client_raw cree") df_client_raw.to_csv("all_datacite_clients_for_uga.csv") -- GitLab