Skip to content

Commit

Permalink
fix typo consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
tschlenther committed Sep 26, 2024
1 parent 08939ef commit 5f2c763
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public class NoiseAverageAnalysis implements MATSimAppCommand {
private static final String ANALYSIS_DIR = "/analysis/noise";
private static final String LINK_ID = "Link Id";
private static final String VALUE = "value";
private List<GenericRecord> imissionsPerDay = new ArrayList<>();
private List<GenericRecord> imissionsPerHour = new ArrayList<>();
private List<GenericRecord> immissionsPerDay = new ArrayList<>();
private List<GenericRecord> immissionsPerHour = new ArrayList<>();
private Map<String, List<Double>> emissionsPerDay = new HashMap<>();
private Map<String, Double> meanEmissionsPerDay = new HashMap<>();
private Map<String, List<Double>> totalStats = new HashMap<>();
Expand Down Expand Up @@ -86,8 +86,8 @@ public Integer call() throws Exception {
for (String folder : foldersSeeded) {
final Path analysisDir = Path.of(folder + ANALYSIS_DIR);
String emissionsCsv = globFile(analysisDir, "*emission_per_day.csv*").toString();
String imissionsPerDayAvro = globFile(analysisDir, "*immission_per_day.avro*").toString();
String imissionsPerHourAvro = globFile(analysisDir, "*immission_per_hour.avro*").toString();
String immissionsPerDayAvro = globFile(analysisDir, "*immission_per_day.avro*").toString();
String immissionsPerHourAvro = globFile(analysisDir, "*immission_per_hour.avro*").toString();
String totalStatsCsv = globFile(analysisDir, "*noise_stats.csv*").toString();
String damagesPerDayAvro = globFile(analysisDir, "*damages_receiverPoint_per_day.avro*").toString();
String damagesPerHourAvro = globFile(analysisDir, "*damages_receiverPoint_per_hour.avro*").toString();
Expand All @@ -105,8 +105,8 @@ public Integer call() throws Exception {
.separator(CsvOptions.detectDelimiter(totalStatsCsv)).build());

// read avro files
readAvroFile(imissionsPerDayAvro, imissionsPerDay);
readAvroFile(imissionsPerHourAvro, imissionsPerHour);
readAvroFile(immissionsPerDayAvro, immissionsPerDay);
readAvroFile(immissionsPerHourAvro, immissionsPerHour);
readAvroFile(damagesPerDayAvro, damagesPerDay);
readAvroFile(damagesPerHourAvro, damagesPerHour);

Expand Down Expand Up @@ -137,8 +137,8 @@ public Integer call() throws Exception {
calcCsvMeans(totalStats, meanTotalStatsPerDay);

// calc avro means
XYTData imissionsPerDayMean = calcAvroMeans(imissionsPerDay, "immission");
XYTData imissionsPerHourMean = calcAvroMeans(imissionsPerHour, "immission");
XYTData immissionsPerDayMean = calcAvroMeans(immissionsPerDay, "immission");
XYTData immissionsPerHourMean = calcAvroMeans(immissionsPerHour, "immission");
XYTData damagesPerDayMean = calcAvroMeans(damagesPerDay, "damages_receiverPoint");
XYTData damagesPerHourMean = calcAvroMeans(damagesPerHour, "damages_receiverPoint");

Expand All @@ -161,8 +161,8 @@ public Integer call() throws Exception {
}

// write avro mean files
writeAvro(imissionsPerDayMean, new File(output.getPath("mean_immission_per_day.avro").toString()));
writeAvro(imissionsPerHourMean, new File(output.getPath("mean_immission_per_hour.avro").toString()));
writeAvro(immissionsPerDayMean, new File(output.getPath("mean_immission_per_day.avro").toString()));
writeAvro(immissionsPerHourMean, new File(output.getPath("mean_immission_per_hour.avro").toString()));
writeAvro(damagesPerDayMean, new File(output.getPath("mean_damages_receiverPoint_per_day.avro").toString()));
writeAvro(damagesPerHourMean, new File(output.getPath("mean_damages_receiverPoint_per_hour.avro").toString()));

Expand Down

0 comments on commit 5f2c763

Please sign in to comment.