From 13033f6936d2a3fbd21379436dcb9b45e7605012 Mon Sep 17 00:00:00 2001 From: ralf Date: Tue, 6 Aug 2024 10:39:34 +0300 Subject: [PATCH] Progress free coding --- Model.py | 6 +++++- __pycache__/Model.cpython-311.pyc | Bin 15371 -> 15368 bytes fitter.py | 7 ++++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Model.py b/Model.py index ca82f02..4eb6ced 100644 --- a/Model.py +++ b/Model.py @@ -362,7 +362,10 @@ class Model: ) r.set_initial_value(initial_values, times[0]) - states = np.array([[0.0] * times.size] * len(initial_values)) + #states = np.array([[0.0] * times.size] * len(initial_values)) + #states[:, 0] = initial_values + + states = np.zeros((len(initial_values), times.size)) states[:, 0] = initial_values for i, t in enumerate(times[1:]): @@ -414,6 +417,7 @@ class Model: ax4.set_ylabel(r"$\mu mol/3l$") plt.show() + return states, V if __name__ == "__main__": diff --git a/__pycache__/Model.cpython-311.pyc b/__pycache__/Model.cpython-311.pyc index 6b87e5c96ab9d7d863a8cc1f514701be8e46aece..51c2fda148916176e7ea5cadc4ec0247c6b3ec02 100644 GIT binary patch delta 1000 zcmZuvO=uHQ5PmPohGdh?Zhkh+CjC)Ll{CNGM6la{J&7WS;z>M6VG}Wwib;{UY~o2s zv4`k*D2N&m>LCFwinpG6wb)7pEn0t06$Go*yKi^9A(9Nd4`$}g_syGmcPjM?^ORv| zMC{w!mBP*nQya%wSRDUgnP;II3wu;s(V?X^D_Gz`OvDaYkKHABIUZpdBZE*K6|n4t zh4>gVWX2FGvhYj{+N-omH#xuwo~M^FLM?I(tGdh#{D^au`@kE6a|s*PD_}aoQ6AOR z^upJ)085EL%F||-t%QXf!!T0qGAAP$-L@1gf*D3twyVw`R#}BSbpaK9<_*P#knC-< za5(A5UJ%nkA4&Vov`gc4z@zBE2`7mM%(zCQP&yUgi5Y&d<7?DDUBGV$!0%+x8ff$2 zOhx(N|8pQOa5V)uFCMkJ$xBHiTz4a88zX(&kVED`;7w{&m)P$s;U*H=5`-Rc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