From e8106daaf6382b05baf3175c985c324088c6ada0 Mon Sep 17 00:00:00 2001 From: Burgholzer Date: Fri, 12 Jul 2024 14:54:13 -0400 Subject: [PATCH] sedtrn vars centralized, and added finish_model function stub --- src/hsp2/hsp2/om_model_linkage.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/hsp2/hsp2/om_model_linkage.py b/src/hsp2/hsp2/om_model_linkage.py index 53b1dafa..b80dcd85 100644 --- a/src/hsp2/hsp2/om_model_linkage.py +++ b/src/hsp2/hsp2/om_model_linkage.py @@ -138,3 +138,14 @@ def step_model_link(op_token, state_ix, ts_ix, step): # set value in a timerseries ts_ix[op_token[2]][step] = state_ix[op_token[4]] return True + + +@njit +def end_model_link(op_token, state_ix, ts_ix, step): + #if step == 2: + # print("step_model_link() called at step 2 with op_token=", op_token) + #print("step_model_link() called at step 2 with op_token=", op_token) + if op_token[3] == 6: + # save timerseries to the hdf5 + + return True