# HG changeset patch # User luca_milaz # Date 1734202771 0 # Node ID fa5483499199934787cbf476abcc16d4e9d126d6 # Parent 264a10b574813967e7afe4c4df4b0529e4f250ec Uploaded diff -r 264a10b57481 -r fa5483499199 COBRAxy/ras_to_bounds.py --- 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