Mercurial > repos > bimib > cobraxy
changeset 220:fa5483499199 draft
Uploaded
author | luca_milaz |
---|---|
date | Sat, 14 Dec 2024 18:59:31 +0000 |
parents | 264a10b57481 |
children | d0e2251fe8a6 |
files | COBRAxy/ras_to_bounds.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/COBRAxy/ras_to_bounds.py Sat Dec 14 18:56:53 2024 +0000 +++ b/COBRAxy/ras_to_bounds.py Sat Dec 14 18:59:31 2024 +0000 @@ -133,7 +133,7 @@ upper_bound=bounds.loc[reaction, "upper_bound"] valMax=float((upper_bound)*scaling_factor) valMin=float((lower_bound)*scaling_factor) - if(valMax is None or valMin is None): + if np.isnan(valMax) or np.isnan(valMin): warning(f"RAS values for {reaction}is None") if upper_bound!=0 and lower_bound==0: new_bounds.loc[reaction, "upper_bound"] = valMax