Fixed csv

- added examples.csv
- fixed csv logic for header and first line
This commit is contained in:
2025-01-30 11:46:25 +01:00
parent 5e5b51e38c
commit 8c349d6eec
8 changed files with 5045 additions and 10 deletions

View File

@@ -22,11 +22,11 @@ public class Plot {
*/
public Plot(String[] args) throws IOException {
var arguments = Plot.parseParameters(args);
var csv = arguments.get("csv");
if (csv == null)
var file = Parameters.getFileOrExample(arguments.get("csv"));
if (file == null)
throw new IllegalArgumentException("CSV file needed! Use -csv <file>");
var results = new CsvResult(csv).loadResults();
var results = new CsvResult(file).loadResults();
this.results = new ResultMultiple(results);
}