Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
measprocess
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lukas Eller
measprocess
Commits
4525cf76
Commit
4525cf76
authored
May 27, 2021
by
Lukas Eller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
included nest-asyncio
parent
e37b920a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
3 deletions
+8
-3
__init__.py
measprocess/rtr/__init__.py
+2
-0
fetch.py
measprocess/rtr/fetch.py
+4
-2
requirements.txt
requirements.txt
+1
-0
setup.py
setup.py
+1
-1
No files found.
measprocess/rtr/__init__.py
View file @
4525cf76
import
nest_asyncio
nest_asyncio
.
apply
()
measprocess/rtr/fetch.py
View file @
4525cf76
...
@@ -42,11 +42,13 @@ def rtr_details(open_test_uuids: List[str]) -> List[dict]:
...
@@ -42,11 +42,13 @@ def rtr_details(open_test_uuids: List[str]) -> List[dict]:
urls
=
[
f
"{BASE_URL}/{SUBDOMAIN_DETAILS}/{uuid}"
for
uuid
in
open_test_uuids
]
urls
=
[
f
"{BASE_URL}/{SUBDOMAIN_DETAILS}/{uuid}"
for
uuid
in
open_test_uuids
]
try
:
try
:
loop
=
asyncio
.
get_running_loop
()
loop
=
asyncio
.
get_running_loop
()
except
RuntimeError
:
# no event loop running:
except
RuntimeError
:
# no event loop running:
loop
=
asyncio
.
new
_event_loop
()
loop
=
asyncio
.
get
_event_loop
()
results
=
loop
.
run_until_complete
(
query
(
urls
))
results
=
loop
.
run_until_complete
(
query
(
urls
))
return
results
return
results
...
...
requirements.txt
View file @
4525cf76
...
@@ -7,3 +7,4 @@ aiohttp>=3.7.4
...
@@ -7,3 +7,4 @@ aiohttp>=3.7.4
tqdm
>=4.60.0
tqdm
>=4.60.0
multidict
>=5.1
multidict
>=5.1
requests
>=2.25
requests
>=2.25
nest-asyncio
>=1.5.1
setup.py
View file @
4525cf76
...
@@ -30,5 +30,5 @@ setup(
...
@@ -30,5 +30,5 @@ setup(
"measprocess.rtr"
"measprocess.rtr"
],
],
include_package_data
=
True
,
include_package_data
=
True
,
install_requires
=
[
"pandas"
,
"matplotlib"
,
"geopandas"
,
"overpy"
,
"shapely"
,
"numpy"
,
"tqdm"
,
"cartopy"
,
"aiohttp"
,
"multidict"
,
"requests"
],
install_requires
=
[
"pandas"
,
"matplotlib"
,
"geopandas"
,
"overpy"
,
"shapely"
,
"numpy"
,
"tqdm"
,
"cartopy"
,
"aiohttp"
,
"multidict"
,
"
nest_asyncio"
,
"
requests"
],
)
)
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