Expand description
§Usage
use crate::bvreader::bv_reader::BVFile;
let headerfile = "src/bv_reader/data/testfiles/01_header.vhdr";
let mut metafile = BVFile::from_header(headerfile).unwrap();
// Optionally validate the BVFile struct
metafile.validate().unwrap();
// metafile.bv_header contains the struct with header information
// metafile.bv_data contains the data, filepath and number of channels
// metafile.bv_marker contains the marker events
// scale data according to the resolution
metafile.bv_data.scale_channels(&metafile.bv_header.channel_info).unwrap();
Modules§
- This module contains functions for validating the BVFile struct
Structs§
- Main struct of the file reader