BioSystemsUM / troppo

Reconstruction algorithms for Python
GNU General Public License v3.0
23 stars 5 forks source link

numpy problem in tINIT #14

Closed aschluter closed 1 year ago

aschluter commented 2 years ago

Hi skapur,

I have a problem trying to run tINIT. I get the following error from the tINIT-test.py file.

Thank you in advance,

Agatha

Traceback (most recent call last): File "tINIT_test.py", line 29, in t.preprocessing() File "/home/agatha/.local/lib/python3.7/site-packages/troppo/methods/reconstruction/tINIT.py", line 114, in preprocessing self.reaction_scores = np.delete(self.reaction_scores, self.essential_reactions_idx) File "<__array_function__ internals>", line 6, in delete File "/home/agatha/.local/lib/python3.7/site-packages/numpy/lib/function_base.py", line 4480, in delete keep[obj,] = False IndexError: arrays used as indices must be of integer (or boolean) type

aschluter commented 2 years ago

Hi skapur,

I solve it installing the dev version of troppo and cobamp.

thanks,