Skip to content

Commit c5194c0

Browse files
Can't use if Variable anymore
1 parent 65f9d43 commit c5194c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymc_extras/statespace/core/statespace.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ def _insert_random_variables(self):
707707
with pymc_model:
708708
for param_name in self.param_names:
709709
param = getattr(pymc_model, param_name, None)
710-
if param:
710+
if param is not None:
711711
found_params.append(param.name)
712712

713713
missing_params = list(set(self.param_names) - set(found_params))
@@ -746,7 +746,7 @@ def _insert_data_variables(self):
746746
with pymc_model:
747747
for data_name in data_names:
748748
data = getattr(pymc_model, data_name, None)
749-
if data:
749+
if data is not None:
750750
found_data.append(data.name)
751751

752752
missing_data = list(set(data_names) - set(found_data))

0 commit comments

Comments
 (0)