Skip to content

Commit 5bd2753

Browse files
committed
Fix up documentation
Workign on #111
1 parent 4a06571 commit 5bd2753

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ The following lines will return a `pandas.DataFrame` containing all the jet pT's
5959
from servicex import ServiceX
6060
query = "(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')"
6161
dataset = "mc15_13TeV:mc15_13TeV.361106.PowhegPythia8EvtGen_AZNLOCTEQ6L1_Zee.merge.DAOD_STDM3.e3601_s2576_s2132_r6630_r6264_p2363_tid05630052_00"
62-
ds = ServiceXDataset(dataset, 'xaod')
62+
ds = ServiceXDataset(dataset)
6363
r = ds.get_data_pandas_df(query)
6464
print(r)
6565
```
@@ -162,8 +162,9 @@ Everything is based around the `ServiceXDataset` object. Below is the documentat
162162
dataset Name of a dataset from which queries will be selected.
163163
backend_type The type of backend. Used only if we need to find an
164164
end-point. If we do not have a `servicex_adaptor` then this
165-
cannot be null. Possible types are `uproot`, `xaod`,
166-
and anything that finds a match in the `.servicex` file.
165+
will default to xaod, unless you have any endpoint listed
166+
in your servicex file. It will default to best match there,
167+
in that case.
167168
image Name of transformer image to use to transform the data
168169
max_workers Maximum number of transformers to run simultaneously on
169170
ServiceX.

servicex/servicex.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ def __init__(self,
5656
dataset Name of a dataset from which queries will be selected.
5757
backend_type The type of backend. Used only if we need to find an
5858
end-point. If we do not have a `servicex_adaptor` then this
59-
cannot be null. Possible types are `uproot`, `xaod`,
60-
and anything that finds a match in the `.servicex` file.
59+
will default to xaod, unless you have any endpoint listed
60+
in your servicex file. It will default to best match there,
61+
in that case.
6162
image Name of transformer image to use to transform the data
6263
max_workers Maximum number of transformers to run simultaneously on
6364
ServiceX.

0 commit comments

Comments
 (0)