pub struct CsvLoadOptions {
pub sample_rate: f32,
pub data_norm: f32,
pub target_channels: Option<Vec<String>>,
pub padding: PaddingStrategy,
pub position_overrides: HashMap<String, [f32; 3]>,
pub channel_whitelist: Option<Vec<String>>,
}Expand description
Options for load_from_csv.
Fields§
§sample_rate: f32Sampling rate of the CSV data in Hz. Default: 256.0.
data_norm: f32Signal normalisation divisor applied after z-scoring. Default: 10.0.
target_channels: Option<Vec<String>>If set, the output channels are reordered / padded to match this list.
Channels in the CSV but not in this list are discarded.
Channels in the list but not in the CSV are synthesised with padding.
padding: PaddingStrategyStrategy for synthesising missing channels. Default: PaddingStrategy::Zero.
position_overrides: HashMap<String, [f32; 3]>Per-channel XYZ position overrides (metres).
Keys are matched case-insensitively. Use this to supply
fuzzy coordinates for channels not in the standard montage database,
or to override database positions for CloneNearest distance queries.
channel_whitelist: Option<Vec<String>>If set, only CSV columns whose normalised name appears in this list are
treated as present. Other CSV columns are silently ignored — they
will be synthesised as missing channels if they appear in
target_channels.
Use this to simulate recordings with fewer channels without modifying
the CSV file (e.g. --n-channels 6 in the csv_embed example).
Trait Implementations§
Source§impl Clone for CsvLoadOptions
impl Clone for CsvLoadOptions
Source§fn clone(&self) -> CsvLoadOptions
fn clone(&self) -> CsvLoadOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CsvLoadOptions
impl Debug for CsvLoadOptions
Auto Trait Implementations§
impl Freeze for CsvLoadOptions
impl RefUnwindSafe for CsvLoadOptions
impl Send for CsvLoadOptions
impl Sync for CsvLoadOptions
impl Unpin for CsvLoadOptions
impl UnsafeUnpin for CsvLoadOptions
impl UnwindSafe for CsvLoadOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more