Skip to content

Commit

Permalink
fix/mackey-glass: trim the csv columns
Browse files Browse the repository at this point in the history
  • Loading branch information
drahnr committed Apr 18, 2021
1 parent aa6d52b commit f08380e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion juice-examples/mackey-glass-rnn-regression/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ impl Record {
// Provide an Iterator over the input data
pub(crate) fn data_generator(data: DataMode) -> impl Iterator<Item = (f32, Vec<f32>)> {
let file = File::open(data.as_path()).expect("File opens as read. qed");
let mut rdr = csv::ReaderBuilder::new()
let rdr = csv::ReaderBuilder::new()
.delimiter(b',')
.trim(csv::Trim::All)
.from_reader(file);

assert!(rdr.has_headers());
Expand Down

0 comments on commit f08380e

Please sign in to comment.