Skip to content

Commit

Permalink
Add comment explaining why From<&SubgridEnum> for Array<f64> is needed
Browse files Browse the repository at this point in the history
  • Loading branch information
cschwan committed Jan 17, 2024
1 parent c29dbc9 commit 57797b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pineappl/src/subgrid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ pub trait Subgrid {
fn static_scale(&self) -> Option<Mu2>;
}

// this is needed in the Python interface
impl From<&SubgridEnum> for Array3<f64> {
fn from(subgrid: &SubgridEnum) -> Self {
let mut result = Self::zeros((
Expand Down

0 comments on commit 57797b8

Please sign in to comment.