Skip to content

Commit

Permalink
Add some small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
t7phy committed Oct 17, 2024
1 parent c795a24 commit e4604f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 3 additions & 4 deletions pineappl/src/convolutions.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Module for everything related to luminosity functions.
//! Module for everything related to convolution functions.
use super::boc::Kinematics;
use super::grid::Grid;
Expand Down Expand Up @@ -236,7 +236,7 @@ impl<'a> ConvolutionCache<'a> {
.position(|&muf2| muf2 == xif * xif * fac)
})
.collect::<Option<_>>()
// if we didn't find a single renormalization scale, we assume we don't need any
// if we didn't find a single factorization scale, we assume we don't need any
// factorization scale
.unwrap_or_default();
self.imua2 = mu2_grid
Expand All @@ -247,11 +247,10 @@ impl<'a> ConvolutionCache<'a> {
.position(|&mua2| mua2 == xia * xia * frg)
})
.collect::<Option<_>>()
// if we didn't find a single renormalization scale, we assume we don't need any
// if we didn't find a single fragmentation scale, we assume we don't need any
// fragmentation scale
.unwrap_or_default();

// TODO: generalize this for arbitrary orderings of x
self.ix = (0..grid.convolutions().len())
.map(|idx| {
grid.kinematics()
Expand Down
1 change: 0 additions & 1 deletion pineappl/src/v0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ pub fn read_uncompressed_v0(mut reader: impl BufRead) -> Result<Grid, GridError>
interps: default_interps(convolutions.len()),
convolutions: convolutions
.into_iter()
//.map(|conv| conv.unwrap_or(Convolution::None))
.flatten()
.collect(),
pid_basis: grid
Expand Down

0 comments on commit e4604f3

Please sign in to comment.