Skip to content

Commit a568c5d

Browse files
committed
Adding ./data to save output. This make the repo cleaner.
1 parent 1158a23 commit a568c5d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@ There are three files in this collection.
55
- README.md - this read me file
66
- contagion001.pde - simulator main loop
77

8+
When running this simulation, it create a data in
9+
comma-separate-value (CSV) format in the "data"
10+
directory. You need to make sure you create a directory.
11+
812

contagion001.pde

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ void setup() {
1717
p1[i] = new People(i);
1818
}
1919
p1[0].getsick(1);
20-
String filename = "data" + ".csv";
20+
String filename = "src/data" + ".csv";
2121
output = createWriter(filename);
2222
output.println("Frame,Well,Sick,Recovered");
2323
}

0 commit comments

Comments
 (0)