Skip to content

Commit 8fda028

Browse files
Merge pull request #199 from HARPgroup/develop-state-reorg
Develop state reorg
2 parents b6f5219 + 9736956 commit 8fda028

File tree

16 files changed

+16
-15
lines changed

16 files changed

+16
-15
lines changed

src/hsp2/hsp2/HYDR.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from hsp2.hsp2.utilities import initm, make_numba_dict
2020

2121
# the following imports added by rb to handle dynamic code and special actions
22-
from hsp2.hsp2.state import hydr_get_ix, hydr_init_ix, hydr_state_vars
22+
from hsp2.state.state import hydr_get_ix, hydr_init_ix, hydr_state_vars
2323
from hsp2.hsp2.om import pre_step_model, step_model, model_domain_dependencies
2424
from numba.typed import Dict
2525

@@ -159,7 +159,7 @@ def hydr(io_manager, siminfo, parameters, ts, ftables, state):
159159
if hsp2_local_py != False:
160160
from hsp2_local_py import state_step_hydr
161161
else:
162-
from hsp2.hsp2.state_fn_defaults import state_step_hydr
162+
from hsp2.state.state_fn_defaults import state_step_hydr
163163
# initialize the hydr paths in case they don't already reside here
164164
hydr_init_ix(state, state["domain"])
165165
# must split dicts out of state Dict since numba cannot handle mixed-type nested Dicts

src/hsp2/hsp2/RQUAL.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from hsp2.hsp2.utilities import initm, initmd, make_numba_dict
1313

1414
# the following imports added to handle special actions
15-
from hsp2.hsp2.state import rqual_init_ix, rqual_state_vars
15+
from hsp2.state.state import rqual_init_ix, rqual_state_vars
1616
from hsp2.hsp2.om import model_domain_dependencies
1717

1818
ERRMSGS_oxrx = (

src/hsp2/hsp2/RQUAL_Class.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from hsp2.hsp2.PLANK_Class import PLANK_Class
1111

1212
# the following imports added to handle special actions
13-
from hsp2.hsp2.state import rqual_get_ix
13+
from hsp2.state.state import rqual_get_ix
1414
from hsp2.hsp2.om import pre_step_model, step_model
1515

1616
if os.environ.get("NUMBA_DISABLE_JIT", 0): # jit should be on by default.

src/hsp2/hsp2/SEDMNT.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from hsp2.hsp2.utilities import hourflag, initm, make_numba_dict
1414

1515
# the following imports added to handle special actions
16-
from hsp2.hsp2.state import sedmnt_get_ix, sedmnt_init_ix, sedmnt_state_vars
16+
from hsp2.state.state import sedmnt_get_ix, sedmnt_init_ix, sedmnt_state_vars
1717
from hsp2.hsp2.om import pre_step_model, step_model, model_domain_dependencies
1818
from numba.typed import Dict
1919

src/hsp2/hsp2/SEDTRN.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from hsp2.hsp2.utilities import make_numba_dict
1111

1212
# the following imports added to handle special actions
13-
from hsp2.hsp2.state import sedtrn_get_ix, sedtrn_init_ix, sedtrn_state_vars
13+
from hsp2.state.state import sedtrn_get_ix, sedtrn_init_ix, sedtrn_state_vars
1414
from hsp2.hsp2.om import pre_step_model, step_model, model_domain_dependencies
1515
from numba.typed import Dict
1616

@@ -110,7 +110,7 @@ def sedtrn(io_manager, siminfo, parameters, ts, state):
110110
# if (hsp2_local_py != False):
111111
# from hsp2_local_py import state_step_hydr
112112
# else:
113-
# from hsp2.hsp2.state_fn_defaults import state_step_hydr
113+
# from hsp2.state.state_fn_defaults import state_step_hydr
114114
# must split dicts out of state Dict since numba cannot handle mixed-type nested Dicts
115115
# initialize the sedtrn paths in case they don't already reside here
116116
sedtrn_init_ix(state, state["domain"])

src/hsp2/hsp2/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
get_gener_timeseries,
1919
)
2020
from hsp2.hsp2.configuration import activities, noop, expand_masslinks
21-
from hsp2.hsp2.state import (
21+
from hsp2.state.state import (
2222
init_state_dicts,
2323
state_siminfo_hsp2,
2424
state_load_dynamics_hsp2,

src/hsp2/hsp2/om.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import time
1111
from numpy import zeros
1212
from numba import njit # import the types
13-
from hsp2.hsp2.state import append_state, get_ix_path
13+
from hsp2.state.state import append_state, get_ix_path
1414

1515

1616
def get_exec_order(model_exec_list, var_ix):

src/hsp2/hsp2/om_equation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
"""
88

99
from hsp2.hsp2.om import is_float_digit
10-
from hsp2.hsp2.state import set_state, get_state_ix
10+
from hsp2.state.state import set_state, get_state_ix
1111
from hsp2.hsp2.om_model_object import ModelObject, ModelConstant
1212
from numba import njit
1313
from numpy import array, append
1414

15-
# from hsp2.hsp2.state import set_state, get_state_ix
15+
# from hsp2.state.state import set_state, get_state_ix
1616
# from numba.typed import Dict
1717
# from hsp2.hsp2.om import get_exec_order, is_float_digit
1818
# from pandas import Series, DataFrame, concat, HDFStore, set_option, to_numeric

src/hsp2/hsp2/om_model_linkage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
during a model simulation.
55
"""
66

7-
from hsp2.hsp2.state import state_add_ts, get_state_ix
7+
from hsp2.state.state import state_add_ts, get_state_ix
88
from hsp2.hsp2.om import *
99
from hsp2.hsp2.om_model_object import ModelObject
1010
from numba import njit

src/hsp2/hsp2/om_model_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
All runtime exec is done by child classes.
55
"""
66

7-
from hsp2.hsp2.state import set_state, get_state_ix
7+
from hsp2.state.state import set_state, get_state_ix
88
from numba.typed import Dict
99
from hsp2.hsp2.om import get_exec_order, is_float_digit
1010
from pandas import HDFStore

0 commit comments

Comments
 (0)