Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
giscience
disaster-tools
covid-19-research-map
Commits
8291b072
Commit
8291b072
authored
May 06, 2020
by
Sven Lautenbach
Browse files
updated data. added few studies for not including or last update post
parent
eb37ed8e
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
nginx/covid_website/assets/data/covid-19-trials.geojson
View file @
8291b072
This diff is collapsed.
Click to expand it.
python/covid_worker.py
View file @
8291b072
...
...
@@ -178,12 +178,14 @@ def run():
# TODO: this is currently broken! You need to provide as csv file manually.
new_data_df
=
get_trials_df_from_url
()
# remove wrong case NCT04256395
studies_to_delete
=
[
"NCT04256395"
,
"NCT04226157"
,
"ISRCTN51287266"
,
"NCT03042143"
,
"NCT03891420"
,
"EUCTR2019-002688-89-ES"
]
studies_to_delete
=
[
"NCT04256395"
,
"NCT04226157"
,
"ISRCTN51287266"
,
"NCT03042143"
,
"NCT03891420"
,
"EUCTR2019-002688-89-ES"
,
"EUCTR2017-001100-30-DE"
]
for
study
in
studies_to_delete
:
new_data_df
=
new_data_df
.
drop
(
new_data_df
[
new_data_df
[
'TrialID'
]
==
study
].
index
,
axis
=
0
)
# for some studies that have been running for a while and have now been updated to incorporate COVID-19
# as well the suggestions by Markus Reis and Konstantin is to use the date in "Last Update Post" instead
studies_updated
=
[
"EUCTR2015-002340-14-NL"
,
"NCT03331445"
,
"NCT04061382"
,
"NCT03680274"
,
"NCT03808922"
,
"NCT03042143"
]
studies_updated
=
[
"EUCTR2015-002340-14-NL"
,
"NCT03331445"
,
"NCT04061382"
,
"NCT03680274"
,
"NCT03808922"
,
"NCT03042143"
,
"NCT04092478"
,
"EUCTR2018-004318-16-DK"
]
needsUpdate
=
new_data_df
[
'TrialID'
].
isin
(
studies_updated
)
new_data_df
[
"Date registration"
]
=
np
.
where
(
needsUpdate
,
new_data_df
[
"Last Refreshed on"
],
...
...
python/dat/covid-19-trials.csv
View file @
8291b072
This diff is collapsed.
Click to expand it.
python/dat/covid-19-trials.geojson
View file @
8291b072
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment