- some bugfixes

This commit is contained in:
Wim Pomp committed 2026-10-03 17:57:14 +02:00
1 parent ef9e257f75
commit 4306c26690
5 files changed
+108 -39

No files matched your search

+7 -2
View File
@@ -11,6 +11,7 @@ use num::cast::AsPrimitive;
use rand::RngExt;
use rayon::iter::IntoParallelIterator;
use rayon::iter::ParallelIterator;
use serde::{Deserialize, Serialize};
use std::cell::RefCell;
use std::ops::Deref;
@@ -71,6 +72,10 @@ impl FixedMu {
.filter_map(|(i, j)| if i.is_none() { Some(*j) } else { None })
.collect()
}
pub fn len_variable(&self) -> usize {
self.len_variable
}
}
/// first_bin, last_bin: center of bin
@@ -178,7 +183,7 @@ impl Sampling {
}
}
#[derive(Clone, Debug)]
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)]
pub enum SamplingArg {
Fixed(usize),
FixedAt(Vec<Vec<f64>>),
@@ -452,7 +457,7 @@ where
}
}
#[derive(Clone, Debug)]
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)]
pub enum Sigma {
None,
Absolute(Vec<f64>),