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