Commit c6ab300a authored by Peter Fackeldey's avatar Peter Fackeldey
Browse files

[sync] small updates

parent 2513fb0e
......@@ -84,7 +84,9 @@ class SyncSelection(PlotHistsBase, ConfigTask):
req.update(
{
"own": CoffeaProcessor.req(
self, processor="SyncSelectionExporter", explorative=True
self,
processor="SyncSelectionExporter",
explorative=True,
)
}
)
......
......@@ -588,12 +588,13 @@ class ArrayExporter(BaseProcessor):
select_output = self.select(events, unc="nominal", shift=None)
categories = self.categories(select_output)
output = select_output["output"]
weights = select_output["weights"]
if categories:
arrays = self.arrays(ChainMap({}, select_output))
dataset = self.get_dataset(events)
weight = select_output["weights"].weight()
weight = weights.weight()
arrays.setdefault(
"weight", np.stack([np.full_like(weight, dataset.id), weight], axis=-1)
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment