Skip to content

Commit 2e4cdf5

Browse files
author
KyungEon Choi
committed
Update for frontend library
1 parent fcd6719 commit 2e4cdf5

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ServiceX DataBinder
22

3-
<p align="right"> Release v0.2.6 </p>
3+
<p align="right"> Release v0.2.7 </p>
44

55
[![PyPI version](https://badge.fury.io/py/servicex-databinder.svg)](https://badge.fury.io/py/servicex-databinder)
66

servicex_databinder/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from .servicex_databinder import DataBinder
44

5-
__version__ = '0.2.6'
5+
__version__ = '0.2.7'
66

77
logging.basicConfig(format="%(levelname)s - %(message)s")
88
logging.getLogger(__name__).setLevel(logging.INFO)

servicex_databinder/frontend.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@ def get_servicex_data(self, test_run=False):
4343

4444
nest_asyncio.apply()
4545

46-
async def bound_get_data(sem, sx_ds, query):
46+
# async def bound_get_data(sem, sx_ds, query):
47+
async def bound_get_data(sem, sx_ds, query, sample):
4748
async with sem:
48-
return await sx_ds.get_data_parquet_async(query)
49-
# return await sx_ds.get_data_parquet_async(query, 'test') # When fix in ServiceX Frontend
49+
# return await sx_ds.get_data_parquet_async(query)
50+
return await sx_ds.get_data_parquet_async(query, sample) # When fix in ServiceX Frontend
5051

5152
async def _get_my_data():
5253
sem = asyncio.Semaphore(50) # Limit maximum concurrent ServiceX requests
@@ -60,8 +61,10 @@ async def _get_my_data():
6061
session_generator=session, \
6162
ignore_cache=ignoreCache)
6263
query = request['query']
64+
sample = request['Sample']
6365

64-
task = asyncio.ensure_future(bound_get_data(sem, sx_ds, query))
66+
# task = asyncio.ensure_future(bound_get_data(sem, sx_ds, query))
67+
task = asyncio.ensure_future(bound_get_data(sem, sx_ds, query, sample))
6568
tasks.append(task)
6669
return await asyncio.gather(*tasks)
6770

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def get_version(rel_path):
3131
license="BSD 3-clause",
3232
python_requires='>=3.6',
3333
install_requires=[
34-
"servicex>=2.4,<2.5",
34+
"servicex>=2.5",
3535
"tcut-to-qastle>=0.6",
3636
"nest-asyncio>=1.5.1",
3737
"tqdm>=4.60.0",

0 commit comments

Comments
 (0)