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
Chris Jewell
covid19uk
Commits
45a79675
Commit
45a79675
authored
Apr 20, 2021
by
Chris Jewell
Browse files
Merge branch 'master' of fhm-chicas-code.lancs.ac.uk:jewell/covid19uk
parents
7a9ce79b
d9c52e4e
Changes
2
Hide whitespace changes
Inline
Side-by-side
covid/data/case_data.py
View file @
45a79675
...
...
@@ -53,7 +53,7 @@ class CasesData:
print
(
"Attempting to download..."
,
end
=
""
,
flush
=
True
)
response
=
requests
.
get
(
url
)
content
=
json
.
loads
(
response
.
content
)
df
=
pd
.
read_json
(
json
.
dumps
(
content
[
"body"
])
)
df
=
pd
.
DataFrame
.
from_dict
(
content
[
"body"
])
print
(
"Success"
,
flush
=
True
)
return
df
except
(
requests
.
ConnectionError
,
requests
.
RequestException
)
as
e
:
...
...
covid/tasks/inference.py
View file @
45a79675
...
...
@@ -355,9 +355,7 @@ if __name__ == "__main__":
parser
.
add_argument
(
"-o"
,
"--output"
,
type
=
str
,
help
=
"Output file"
,
required
=
True
)
parser
.
add_argument
(
"data_file"
,
type
=
str
,
help
=
"Data pickle file"
,
required
=
True
)
parser
.
add_argument
(
"data_file"
,
type
=
str
,
help
=
"Data NetCDF file"
)
args
=
parser
.
parse_args
()
with
open
(
args
.
config
,
"r"
)
as
f
:
...
...
Write
Preview
Markdown
is supported
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