Skip to content

Commit

Permalink
Switch test dimuon for coffeav0 to test Dask executor
Browse files Browse the repository at this point in the history
  • Loading branch information
oshadura committed Feb 13, 2024
1 parent cc48992 commit 86c2a33
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/test_dimuon.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
from coffea.nanoevents.methods import candidate
from coffea.nanoevents import NanoEventsFactory, BaseSchema

from dask.distributed import Client

fileset = {
'DoubleMuon': [
'root://eospublic.cern.ch//eos/root-eos/cms_opendata_2012_nanoaod/Run2012B_DoubleMuParked.root',
Expand Down Expand Up @@ -59,11 +61,12 @@ def process(self, events):
def postprocess(self, accumulator):
pass

#@pytest.mark.coffeav0
@pytest.mark.coffeav0
def test_processor_dimu_mass():
iterative_run = processor.Runner(executor = processor.IterativeExecutor(compression=None),
client = Client()
iterative_run = processor.Runner(executor = processor.dask_executor,
schema=BaseSchema,
maxchunks=10
client=client,
)
out = iterative_run(fileset,
treename="Events",
Expand Down

0 comments on commit 86c2a33

Please sign in to comment.