Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UGA Open Research Data Monitor backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Elias Chetouane
UGA Open Research Data Monitor backend
Commits
a2e04e76
Commit
a2e04e76
authored
11 months ago
by
Maxence Larrieu
Browse files
Options
Downloads
Patches
Plain Diff
remove old versioning for figshare
parent
9bc5721a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
0-collect-data/datacite-dois.txt
+1644
-1181
1644 additions, 1181 deletions
0-collect-data/datacite-dois.txt
0-collect-data/datacite.py
+0
-13
0 additions, 13 deletions
0-collect-data/datacite.py
with
1644 additions
and
1194 deletions
0-collect-data/datacite-dois.txt
+
1644
−
1181
View file @
a2e04e76
This diff is collapsed.
Click to expand it.
0-collect-data/datacite.py
+
0
−
13
View file @
a2e04e76
...
@@ -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
"
\t
Nb of unique DOI
\t
{
len
(
unique_dois
)
}
"
)
print
(
f
"
\t
Nb of unique DOI
\t
{
len
(
unique_dois
)
}
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment