Skip to content
Snippets Groups Projects
Commit a2e04e76 authored by Maxence Larrieu's avatar Maxence Larrieu
Browse files

remove old versioning for figshare

parent 9bc5721a
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
...@@ -125,19 +125,6 @@ if main_no_dois : ...@@ -125,19 +125,6 @@ if main_no_dois :
print("datasets with an other identifier than DOI has been finded") print("datasets with an other identifier than DOI has been finded")
[print(f"\t\t{elem}") for elem in main_no_dois] [print(f"\t\t{elem}") for elem in main_no_dois]
## __________n__________ remove DOIs who are newer version via Figshare repository
## example 10.6084/m9.figshare.23737431.v2
## peut être refait lors de la récupération en véridiant que relatedIdentifiers/relationType:"IsIdenticalTo" ne soit présent
doi_to_remove = []
for doi in main_dois :
if "figshare" in doi :
# synthaxe : remove the number of the version
doi_shorten = doi[: len(doi) - 1]
if doi_shorten.endswith(".v") :
doi_to_remove.append(doi)
[main_dois.remove(elem) for elem in doi_to_remove]
## __________n__________ remove duplicates ## __________n__________ remove duplicates
unique_dois = list(set(main_dois)) unique_dois = list(set(main_dois))
print(f"\tNb of unique DOI\t{len(unique_dois)}") print(f"\tNb of unique DOI\t{len(unique_dois)}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment