Skip to content

Commit

Permalink
Fix up warnings and flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonwatts committed Nov 9, 2020
1 parent 87e85f2 commit 915d6fe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"Reconstructor",
"STDM",
"SXPASS",
"SXTOKEN",
"SXTYPE",
"SXUSER",
"SXTOKEN",
"Servivce",
"Topo",
"accesskey",
Expand Down Expand Up @@ -47,6 +47,7 @@
"minio",
"miniouser",
"mino",
"nargs",
"ncols",
"ndarray",
"nqueries",
Expand Down
6 changes: 3 additions & 3 deletions scripts/run_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
from servicex.servicex_adaptor import ServiceXAdaptor


async def run_query(endpoint: Optional[ServiceXAdaptor], dest:str) -> None:
async def run_query(endpoint: Optional[ServiceXAdaptor], dest: str) -> None:
ds = ServiceXDataset(
"mc16_13TeV:mc16_13TeV.361106.PowhegPythia8EvtGen_AZNLOCTEQ6L1_Zee.deriv.DAOD_STDM3.e3601_e5984_s3126_r10201_r10210_p3975_tid20425969_00", # NOQA
backend_type='xaod',
max_workers=100,
servicex_adaptor=endpoint)

request = "(call ResultTTree (call Select (call SelectMany (call EventDataset (list 'localds:bogus')) (lambda (list e) (call (attr e 'Jets') 'AntiKt4EMTopoJets'))) (lambda (list j) (/ (call (attr j 'pt')) 1000.0))) (list 'JetPt') 'analysis' 'junk.root')"
request = "(call ResultTTree (call Select (call SelectMany (call EventDataset (list 'localds:bogus')) (lambda (list e) (call (attr e 'Jets') 'AntiKt4EMTopoJets'))) (lambda (list j) (/ (call (attr j 'pt')) 1000.0))) (list 'JetPt') 'analysis' 'junk.root')" # NOQA
if dest == 'rootfiles':
r = ds.get_data_rootfiles(request) # NOQA
r = ds.get_data_rootfiles(request)
print(r)
elif dest == 'rootfiles-minio':
r = ds.get_data_rootfiles_minio_async(request)
Expand Down
1 change: 0 additions & 1 deletion servicex/servicex.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import aiohttp
import backoff
from backoff import on_exception
from numpy.lib.function_base import select

from servicex.servicex_config import ServiceXConfigAdaptor

Expand Down

0 comments on commit 915d6fe

Please sign in to comment.