Skip to content

Commit

Permalink
lower some unit test expected error
Browse files Browse the repository at this point in the history
do not early filter out vertical edge diffraction
  • Loading branch information
nicolas-f committed Oct 17, 2024
1 parent 2c314ef commit d3af39f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2,514 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3536,8 +3536,6 @@ public void TC11() throws IOException {
//Run computation
computeRays.run(propDataOut);

exportRays("src/test/resources/org/noise_planet/noisemodelling/jdbc/regression2/cnossosPath.json", propDataOut.getPropagationPaths());

//Expected values
//Path0 : vertical plane
double[] expectedDeltaDiffSRH = new double[]{11.92, 14.46, 17.23, 20.11, 23.06, 26.04, 29.03, 32.03};
Expand Down Expand Up @@ -3786,20 +3784,20 @@ public void TC11() throws IOException {
actualLH = addArray(proPath.aGlobalH, SOUND_POWER_LEVELS);

//Assertions
assertDoubleArrayEquals("WH", expectedWH, actualWH, ERROR_EPSILON_LOW);
assertDoubleArrayEquals("CfH", expectedCfH, actualCfH, ERROR_EPSILON_LOW);
assertDoubleArrayEquals("AGroundH", expectedAGroundH, actualAGroundH, ERROR_EPSILON_LOW);
/*assertDoubleArrayEquals("WF", expectedWF, actualWF, ERROR_EPSILON_LOW);
assertDoubleArrayEquals("WH", expectedWH, actualWH, ERROR_EPSILON_VERY_LOW);
assertDoubleArrayEquals("CfH", expectedCfH, actualCfH, ERROR_EPSILON_VERY_LOW);
assertDoubleArrayEquals("AGroundH", expectedAGroundH, actualAGroundH, ERROR_EPSILON_VERY_LOW);
assertDoubleArrayEquals("WF", expectedWF, actualWF, ERROR_EPSILON_VERY_LOW);
assertDoubleArrayEquals("CfF", expectedCfF, actualCfF, ERROR_EPSILON_VERY_LOW);
assertDoubleArrayEquals("AGroundF", expectedAGroundF, actualAGroundF, ERROR_EPSILON_VERY_LOW);

assertDoubleArrayEquals("AlphaAtm - right lateral", expectedAlphaAtm, actualAlphaAtm, ERROR_EPSILON_LOWEST);
assertDoubleArrayEquals("AAtm - right lateral", expectedAAtm, actualAAtm, ERROR_EPSILON_LOWEST);
assertDoubleArrayEquals("ADiv - right lateral", expectedADiv, actualADiv, ERROR_EPSILON_LOW);
assertDoubleArrayEquals("ADiv - right lateral", expectedADiv, actualADiv, ERROR_EPSILON_VERY_LOW);
assertDoubleArrayEquals("AGroundH - right lateral", expectedAGroundH, actualAGroundH, ERROR_EPSILON_VERY_LOW);
assertDoubleArrayEquals("AGroundF - right lateral", expectedAGroundF, actualAGroundF, ERROR_EPSILON_VERY_LOW);
assertDoubleArrayEquals("DeltaDiffSRH - right lateral", expectedDeltaDiffSRH, actualDeltaDiffSRH, ERROR_EPSILON_LOW);
assertDoubleArrayEquals("LH - right lateral", expectedLH, actualLH, ERROR_EPSILON_LOW);*/
assertDoubleArrayEquals("DeltaDiffSRH - right lateral", expectedDeltaDiffSRH, actualDeltaDiffSRH, ERROR_EPSILON_VERY_LOW);
assertDoubleArrayEquals("LH - right lateral", expectedLH, actualLH, ERROR_EPSILON_VERY_LOW);

/*try{
writerTc01.write("Right Lateral\n\n");
Expand Down Expand Up @@ -3870,11 +3868,11 @@ public void TC11() throws IOException {
actualAGroundF = proPath.groundAttenuation.aGroundF;

//Assertions
assertDoubleArrayEquals("WH", expectedWH, actualWH, ERROR_EPSILON_LOW);
assertDoubleArrayEquals("CfH", expectedCfH, actualCfH, ERROR_EPSILON_LOW);
assertDoubleArrayEquals("AGroundH", expectedAGroundH, actualAGroundH, ERROR_EPSILON_LOW);
assertDoubleArrayEquals("WF", expectedWF, actualWF, ERROR_EPSILON_LOW);
assertDoubleArrayEquals("CfF", expectedCfF, actualCfF, ERROR_EPSILON_LOW);
assertDoubleArrayEquals("WH", expectedWH, actualWH, ERROR_EPSILON_VERY_LOW);
assertDoubleArrayEquals("CfH", expectedCfH, actualCfH, ERROR_EPSILON_VERY_LOW);
assertDoubleArrayEquals("AGroundH", expectedAGroundH, actualAGroundH, ERROR_EPSILON_VERY_LOW);
assertDoubleArrayEquals("WF", expectedWF, actualWF, ERROR_EPSILON_VERY_LOW);
assertDoubleArrayEquals("CfF", expectedCfF, actualCfF, ERROR_EPSILON_VERY_LOW);
assertDoubleArrayEquals("AGroundF", expectedAGroundF, actualAGroundF, ERROR_EPSILON_VERY_LOW);

/*try {
Expand Down
Loading

0 comments on commit d3af39f

Please sign in to comment.