Skip to content

Commit

Permalink
???
Browse files Browse the repository at this point in the history
  • Loading branch information
hydrowoxy committed Dec 22, 2024
1 parent a66ffba commit 19b7c58
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
package com.mcmasterbaja.analyzer;

import com.mcmasterbaja.annotations.OnAnalyzerException;
import com.mcmasterbaja.annotations.OnStorageException;
import com.mcmasterbaja.exceptions.InvalidHeaderException;
import com.opencsv.CSVReader;
import com.opencsv.ICSVWriter;

import lombok.SneakyThrows;

@OnAnalyzerException
@OnStorageException
public class DeleteOutliers extends Analyzer {
private final double limit;

Expand All @@ -33,7 +32,9 @@ public void analyze() {
ICSVWriter writer = getWriter(outputFiles[0]);

String[] headers = reader.readNext();
if (headers==null) { throw new InvalidHeaderException("Failed to read headers from input file: " + inputFiles[0]); }
if (headers == null) {
throw new InvalidHeaderException("Failed to read headers from input file: " + inputFiles[0]);
}

int xAxisIndex = this.getColumnIndex(inputColumns[0], headers);
writer.writeNext(headers);
Expand Down

0 comments on commit 19b7c58

Please sign in to comment.