We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a69c3c0 commit ffe1ca6Copy full SHA for ffe1ca6
1 file changed
pineappl/src/grid.rs
@@ -1641,8 +1641,10 @@ impl Grid {
1641
new_grid.subgrids = new_subgrids;
1642
new_grid.metadata = self.metadata.clone();
1643
1644
- // Optimize the Grid to remove empty orders, duplicate/symmetrical channels, etc.
1645
- new_grid.optimize();
+ new_grid.optimize_using(GridOptFlags::STRIP_EMPTY_ORDERS);
1646
+ new_grid.optimize_using(GridOptFlags::MERGE_SAME_CHANNELS);
1647
+
1648
Ok(new_grid)
1649
}
1650
0 commit comments