BioSystemsUM / troppo

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

TypeError: float() argument must be a string or a number, not 'list'. #22

Closed Rohak72 closed 1 year ago

Rohak72 commented 1 year ago

Hi,

When running GIMME, I encounter the following error: TypeError: float() argument must be a string or a number, not 'list'. It seems this has to do with the exp_vector being a list of scores rather than a single number. There's a line of code that attempts to compare the exp_vector with the flux_threshold (self.exp_vector < flux_threshold), which I suspect is causing the error. Any suggestions would be greatly appreciated!

Best, Rohak

Rohak72 commented 1 year ago

@skapur @jorgemlferreira

Rohak72 commented 1 year ago

Nevermind, just resolved this!

For anyone interested, the fix was to rewire the code to get a numpy.ndarray with True/False designations corresponding to whether a given value in the expression vector was > than the flux_threshold or equal to -1.