Skip to content

Commit

Permalink
fix CLI nthreads
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasdavis committed Mar 22, 2019
1 parent 931c862 commit a62190c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions twaml/_apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ def root2pytables():
for f in args.input_files:
log.info(f"- {f}")

xtor = ThreadPoolExecutor(args.nthreads) if args.nthreads > 1 else None

ds = dataset.from_root(
args.input_files,
name=args.name,
Expand All @@ -113,7 +111,7 @@ def root2pytables():
branches=args.branches,
auxweights=args.auxweights,
detect_weights=args.detect_weights,
executor=xtor,
nthreads=args.nthreads if nthreads > 1 else None,
wtloop_meta=True,
)
ds.to_pytables(args.out_file)
Expand Down

0 comments on commit a62190c

Please sign in to comment.