From 957655339c2cad0112585f0414ce42fccca4af9b Mon Sep 17 00:00:00 2001 From: Alessandro Candido Date: Thu, 18 Nov 2021 16:12:23 +0100 Subject: [PATCH] Add scale to python API To be deleted To be deleted --- pineappl_py/src/grid.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pineappl_py/src/grid.rs b/pineappl_py/src/grid.rs index ddc6cbf7..76103a69 100644 --- a/pineappl_py/src/grid.rs +++ b/pineappl_py/src/grid.rs @@ -465,4 +465,14 @@ impl PyGrid { }) .collect() } + + /// Scale all subgrids. + /// + /// Parameters + /// ---------- + /// factor : float + /// scalar factor by which scaling + pub fn scale(&mut self, factor: f64) { + self.grid.scale(factor); + } }