Skip to content
Snippets Groups Projects
Commit 08a45757 authored by Florian Franzmann's avatar Florian Franzmann Committed by Florian Franzmann
Browse files

Add actual number of cases to csv

parent 6bd22849
No related branches found
No related tags found
No related merge requests found
......@@ -101,7 +101,13 @@ fn main() -> std::io::Result<()> {
let date = date.to_string();
let exponential_estimate = exponential_estimate.to_string();
let gompertz_estimate = gompertz_estimate.to_string();
writer.write_record(&[date, exponential_estimate, gompertz_estimate]).unwrap();
let actual_infected = if (day as usize) < days.len() {
days[day as usize].infected.to_string()
} else {
"".to_string()
};
writer.write_record(&[date, actual_infected, exponential_estimate, gompertz_estimate]).unwrap();
};
if (day as usize) < days.len() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment