KIT-CMS / ntuple_processor

Submodule of ntuple-analysis containing the actual software to run the analysis
0 stars 3 forks source link

[Optimization] Reintroduce optimization(2) in a working way avoiding … #9

Closed maxgalli closed 4 years ago

maxgalli commented 4 years ago

…deepcopies

The solution is simple: in Graph.paths, instead of having one key per action, the keys are just tuples containing all the actions. Then in the swapping we extend the children attribute of the last node instead of looping over the actions and appending.