diff --git a/tupak/core/prior.py b/tupak/core/prior.py index 10dd0fa15b86b2ba48149e4a82b6d3a19ae0c1c3..a589c438f7e7c3a172e10607037f0c84874c410e 100644 --- a/tupak/core/prior.py +++ b/tupak/core/prior.py @@ -147,7 +147,7 @@ class PriorSet(dict): """ return self.sample_subset(keys=self.keys(), size=size) - def sample_subset(self, keys=list(), size=None): + def sample_subset(self, keys=iter([]), size=None): """Draw samples from the prior set for parameters which are not a DeltaFunction Parameters @@ -377,7 +377,7 @@ class Prior(object): """ return self._subclass_repr_helper() - def _subclass_repr_helper(self, subclass_args=list()): + def _subclass_repr_helper(self, subclass_args=iter([])): """Helps out subclass _repr__ methods by creating a common template Parameters