Reduced Chi-Square metric computation possible bug

Yes I’m using an Hipparchus abstract class that already takes the total number of measurements as input, which here accounts for the rejected ones.
What version of the Python wrapper are you using? If it’s the jpype one, you could replace the .jar as explained here. I could maybe provide you with it if you can’t compile Java on your side.

Cheers,
Romain.