From 57797b82fa5277358c8d30ceaa0025ca1d5687e3 Mon Sep 17 00:00:00 2001 From: Christopher Schwan Date: Wed, 17 Jan 2024 13:46:57 +0100 Subject: [PATCH] Add comment explaining why `From<&SubgridEnum> for Array` is needed --- pineappl/src/subgrid.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/pineappl/src/subgrid.rs b/pineappl/src/subgrid.rs index e80c4278..7dda201a 100644 --- a/pineappl/src/subgrid.rs +++ b/pineappl/src/subgrid.rs @@ -118,6 +118,7 @@ pub trait Subgrid { fn static_scale(&self) -> Option; } +// this is needed in the Python interface impl From<&SubgridEnum> for Array3 { fn from(subgrid: &SubgridEnum) -> Self { let mut result = Self::zeros((