We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
if Variable
1 parent 65f9d43 commit c5194c0Copy full SHA for c5194c0
pymc_extras/statespace/core/statespace.py
@@ -707,7 +707,7 @@ def _insert_random_variables(self):
707
with pymc_model:
708
for param_name in self.param_names:
709
param = getattr(pymc_model, param_name, None)
710
- if param:
+ if param is not None:
711
found_params.append(param.name)
712
713
missing_params = list(set(self.param_names) - set(found_params))
@@ -746,7 +746,7 @@ def _insert_data_variables(self):
746
747
for data_name in data_names:
748
data = getattr(pymc_model, data_name, None)
749
- if data:
+ if data is not None:
750
found_data.append(data.name)
751
752
missing_data = list(set(data_names) - set(found_data))
0 commit comments