Skip to content

Commit ca4de56

Browse files
committed
Remove legacy _combine_property
1 parent fafc4c2 commit ca4de56

File tree

1 file changed

+0
-11
lines changed
  • pymc_extras/statespace/models/structural

1 file changed

+0
-11
lines changed

pymc_extras/statespace/models/structural/core.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -740,17 +740,6 @@ def make_slice(name, x, o_x):
740740
return new_ssm
741741

742742
def _combine_property(self, other, name, allow_duplicates=True):
743-
self_prop = getattr(self, name)
744-
if isinstance(self_prop, list) and allow_duplicates:
745-
return self_prop + getattr(other, name)
746-
elif isinstance(self_prop, list) and not allow_duplicates:
747-
return self_prop + [x for x in getattr(other, name) if x not in self_prop]
748-
elif isinstance(self_prop, dict):
749-
new_prop = self_prop.copy()
750-
new_prop.update(getattr(other, name))
751-
return new_prop
752-
753-
def _combine_property_2(self, other, name, allow_duplicates=True):
754743
"""
755744
Combine a property from two components during component addition.
756745

0 commit comments

Comments
 (0)