# HG changeset patch # User luca_milaz # Date 1720163947 0 # Node ID c298efdfe431b1705af6eb4bd1203f4ac4cf0669 # Parent ecd1b2ae80c633fb6046dbf92b0d21c617cfd347 Uploaded diff -r ecd1b2ae80c6 -r c298efdfe431 marea_2_0/flux_sampling.py --- a/marea_2_0/flux_sampling.py Fri Jul 05 07:16:07 2024 +0000 +++ b/marea_2_0/flux_sampling.py Fri Jul 05 07:19:07 2024 +0000 @@ -130,7 +130,7 @@ CBS_backend.randomObjectiveFunctionSampling(model, n_samples, df_coefficients.iloc[:,i*n_samples:(i+1)*n_samples], samples) except Exception as e: utils.logWarning( - "Warning: GLPK solver has failed for " + model_name + ". Trying with COBRA interface. Error:" + e, + "Warning: GLPK solver has failed for " + model_name + ". Trying with COBRA interface. Error:" + str(e), ARGS.out_log) CBS_backend.randomObjectiveFunctionSampling_cobrapy(model, n_samples, df_coefficients.iloc[:,i*n_samples:(i+1)*n_samples], samples)