diff --git a/1-enrich-with-datacite/concatenate-enrich-dois.py b/1-enrich-with-datacite/concatenate-enrich-dois.py index 428a8cc18ff666fa41a133e49cbc4a98a1776979..499f23d3e6f6fb73cd87fc780bce54b72c74a2f3 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")