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
Maxence Larrieu
UGA Open Research Data Monitor backend
Commits
51d81aaa
Commit
51d81aaa
authored
1 year ago
by
Elias Chetouane
Browse files
Options
Downloads
Patches
Plain Diff
Debug pour test.
parent
c32ed35a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
0-collect-data/zenodo.py
+0
-8
0 additions, 8 deletions
0-collect-data/zenodo.py
1-enrich-with-datacite/concatenate-enrich-dois.py
+2
-1
2 additions, 1 deletion
1-enrich-with-datacite/concatenate-enrich-dois.py
with
2 additions
and
9 deletions
0-collect-data/zenodo.py
+
0
−
8
View file @
51d81aaa
...
...
@@ -29,13 +29,6 @@ import requests, json
print
(
"
\n\n
Running zenodo.py
"
)
with
open
(
"
personnal-keys.json
"
)
as
f
:
## load zenodo keys for requests the API
ACCESS_TOKEN
=
json
.
load
(
f
)[
"
ZENODO_KEY
"
]
def
req_zenodo_with_page
(
uga_perimeter
,
record_type
,
page_nb
)
:
"""
retourne les jeux de données UGA depuis Zenodo
...
...
@@ -51,7 +44,6 @@ def req_zenodo_with_page(uga_perimeter, record_type, page_nb) :
"
size
"
:
100
,
"
sort
"
:
"
mostrecent
"
,
"
all_version
"
:
False
,
"
access_tpoken
"
:
ACCESS_TOKEN
}
)
# for debugging
...
...
This diff is collapsed.
Click to expand it.
1-enrich-with-datacite/concatenate-enrich-dois.py
+
2
−
1
View file @
51d81aaa
...
...
@@ -61,7 +61,7 @@ if temp_rows :
# 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
)))
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
()
...
...
@@ -81,6 +81,7 @@ 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
"
)
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