biosimulators / Biosimulators_utils

Utilities for building standardized command-line interfaces for biosimulation software packages
https://docs.biosimulators.org/Biosimulators_utils
MIT License
4 stars 6 forks source link

NumPy bug with newest version #123

Closed eagmon closed 1 year ago

eagmon commented 1 year ago

The newer versions of NumPy have deprecated the ability to use a slice object as an index, which breaks the code at these lines: https://github.com/biosimulators/Biosimulators_utils/blob/9355badea9324b57a23330b57becf85fa2a37ace/biosimulators_utils/report/io.py#L270-L271

This is the resulting error message:

IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices

This code needs to be reworked to index into this results NumPy array with variable number of dimensions and index ranges.