From 101adfdfc49cb573509ef5e4768346246a425217 Mon Sep 17 00:00:00 2001 From: Andrew's WorkMacbook Date: Thu, 29 Jun 2023 19:19:55 -0500 Subject: [PATCH] MSCommunity and CommPhitting updates --- .../Community Modeling/MSSteadyCom/SteadyCom_electro.ipynb | 4 ++-- modelseedpy/community/mscommphitting.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/Community Modeling/MSSteadyCom/SteadyCom_electro.ipynb b/examples/Community Modeling/MSSteadyCom/SteadyCom_electro.ipynb index 57925e3f..87934220 100644 --- a/examples/Community Modeling/MSSteadyCom/SteadyCom_electro.ipynb +++ b/examples/Community Modeling/MSSteadyCom/SteadyCom_electro.ipynb @@ -158,7 +158,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -172,7 +172,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.8" + "version": "3.9.6" } }, "nbformat": 4, diff --git a/modelseedpy/community/mscommphitting.py b/modelseedpy/community/mscommphitting.py index 51c20e59..3caba081 100644 --- a/modelseedpy/community/mscommphitting.py +++ b/modelseedpy/community/mscommphitting.py @@ -97,7 +97,7 @@ def parse_primals(primal_values, entity_labels=None, coefs=None, kcat_vals=None) if tsBin not in kcat_primal[species][pheno]: kcat_primal[species][pheno][tsBin] = 0 # kcat_(k,new) = sum_z^Z ( kcat_z * bin_k^z ) * kcat_(k,old) < 10 if value == 0 and kcat_primal[species][pheno][tsBin] < 10: - kcat_primal[species][pheno][tsBin] += coefs[int(number)-1]*kcat_vals[species][pheno] + kcat_primal[species][pheno][tsBin] += coefs[int(number)-1]*kcat_vals[species][pheno][tsBin] kcat_primal[species][pheno][tsBin] = clamp(kcat_primal[species][pheno][tsBin], 1e-4, 10) return kcat_primal select_primals = {}