diff --git a/1-enrich-with-datacite/concatenate-enrich-dois.py b/1-enrich-with-datacite/concatenate-enrich-dois.py index a96a44f845224e412c60ef225b4b08fafc72293f..c1ff64a8871d5ddec3eaa806c3ed29f487422a86 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()