Skip to content

Commit 2db1260

Browse files
authored
Pass share_states to super calls
1 parent 9a472f0 commit 2db1260

File tree

6 files changed

+7
-0
lines changed

6 files changed

+7
-0
lines changed

pymc_extras/statespace/models/structural/components/autoregressive.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ def __init__(
103103
combine_hidden_states=True,
104104
observed_state_names=observed_state_names,
105105
obs_state_idxs=np.tile(np.r_[[1.0], np.zeros(k_states - 1)], k_endog_effective),
106+
share_states=share_states,
106107
)
107108

108109
def populate_component_properties(self):

pymc_extras/statespace/models/structural/components/cycle.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ def __init__(
197197
combine_hidden_states=True,
198198
obs_state_idxs=obs_state_idx,
199199
observed_state_names=observed_state_names,
200+
share_states=share_states,
200201
)
201202

202203
def make_symbolic_graph(self) -> None:

pymc_extras/statespace/models/structural/components/level_trend.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ def __init__(
170170
obs_state_idxs=np.tile(
171171
np.array([1.0] + [0.0] * (k_states - 1)), k_endog if not share_states else 1
172172
),
173+
share_states=share_states,
173174
)
174175

175176
def populate_component_properties(self):

pymc_extras/statespace/models/structural/components/measurement_error.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ def __init__(
119119
measurement_error=True,
120120
combine_hidden_states=False,
121121
observed_state_names=observed_state_names,
122+
share_states=share_states,
122123
)
123124

124125
def populate_component_properties(self):

pymc_extras/statespace/models/structural/components/regression.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ def __init__(
132132
k_states=k_states * k_endog if not share_states else k_states,
133133
k_posdef=k_posdef * k_endog if not share_states else k_posdef,
134134
state_names=self.state_names,
135+
share_states=share_states,
135136
observed_state_names=observed_state_names,
136137
measurement_error=False,
137138
combine_hidden_states=False,

pymc_extras/statespace/models/structural/components/seasonality.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ def __init__(
296296
obs_state_idxs=np.tile(
297297
np.array([1.0] + [0.0] * (k_states - 1)), 1 if share_states else k_endog
298298
),
299+
share_states=share_states,
299300
)
300301

301302
def populate_component_properties(self):
@@ -525,6 +526,7 @@ def __init__(
525526
k_posdef=k_states * int(self.innovations)
526527
if share_states
527528
else k_states * int(self.innovations) * k_endog,
529+
share_states=share_states,
528530
observed_state_names=observed_state_names,
529531
measurement_error=False,
530532
combine_hidden_states=True,

0 commit comments

Comments
 (0)