diff --git a/navis/morpho/mmetrics.py b/navis/morpho/mmetrics.py index dcd8c415..7864326e 100644 --- a/navis/morpho/mmetrics.py +++ b/navis/morpho/mmetrics.py @@ -30,6 +30,12 @@ # Set up logging logger = config.get_logger(__name__) +# Set up numpy number representation, see NEP51 +# Once numpy<=2 is dropped from requirements, the doctest comparissons +# should become `np.float64(1.074)` instead of `1.074` +if int(np.version.version.split('.')[0])>=2: + np.set_printoptions(legacy="1.25") + __all__ = sorted( [ "strahler_index",