scipy / scipy_doctest

Floating-point aware doctesting
BSD 3-Clause "New" or "Revised" License
5 stars 4 forks source link

BUG: make handling of masked arrays more specific #148

Closed ev-br closed 4 months ago

ev-br commented 4 months ago

Only retry on a masked array if it actually has masked values.

Falls out for NumPy < 2.0 handling of stats.describe: otherwise the very presence of a masked array triggers an infinite loop terminating at the recursion limit.

ev-br commented 4 months ago

Would be nice to cook up a test for this without using stats.describe directly. Some day.