Skip to content

Commit

Permalink
#204: added debug info to polyfit test to see why it's failing with J…
Browse files Browse the repository at this point in the history
…ava versions other than 8
  • Loading branch information
dbenn committed Dec 2, 2024
1 parent b7a348a commit 5f847ab
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -474,16 +474,22 @@ private boolean testPolynomialFit() {

List<ValidObservation> fit = model.getFit();
ValidObservation fitOb = fit.get(0);
result &= fitOb.getJD() == 2459301;
result &= fitOb.getJD() == 2459301.0;
System.err.println(result);
result &= Tolerance.areClose(0.629248, fitOb.getMag(), DELTA, true);

System.err.println(result);

List<ValidObservation> residuals = model.getResiduals();
ValidObservation resOb = residuals.get(0);
result &= resOb.getJD() == 2459301;
result &= resOb.getJD() == 2459301.0;
System.err.println(result);
result &= Tolerance.areClose(0.000073, resOb.getMag(), DELTA, true);
System.err.println(result);

result &= Tolerance.areClose(-7923.218889035116, model.aic, DELTA, true);
System.err.println(result);
result &= Tolerance.areClose(-7888.243952752065, model.bic, DELTA, true);
System.err.println(result);

} catch (AlgorithmError e) {
result = false;
Expand Down

0 comments on commit 5f847ab

Please sign in to comment.