Skip to content

Commit

Permalink
Swap unwrap_or for unwrap_or_default
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhekhorn committed Sep 3, 2024
1 parent 5117ea1 commit 9a163bb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pineappl_py/src/grid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,9 @@ impl PyGrid {
self.grid
.convolve(
&mut lumi_cache,
&order_mask.unwrap_or(vec![]),
&bin_indices.unwrap_or(vec![]),
&channel_mask.unwrap_or(vec![]),
&order_mask.unwrap_or_default(),
&bin_indices.unwrap_or_default(),
&channel_mask.unwrap_or_default(),
&xi.unwrap_or(vec![(1.0, 1.0)]),
)
.into_pyarray_bound(py)
Expand Down Expand Up @@ -347,9 +347,9 @@ impl PyGrid {
self.grid
.convolve(
&mut lumi_cache,
&order_mask.unwrap_or(vec![]),
&bin_indices.unwrap_or(vec![]),
&channel_mask.unwrap_or(vec![]),
&order_mask.unwrap_or_default(),
&bin_indices.unwrap_or_default(),
&channel_mask.unwrap_or_default(),
&xi.unwrap_or(vec![(1.0, 1.0)]),
)
.into_pyarray_bound(py)
Expand Down

0 comments on commit 9a163bb

Please sign in to comment.