Skip to content
Snippets Groups Projects
Commit f3187c54 authored by Moritz Huebner's avatar Moritz Huebner
Browse files

Resolve "`sample_subset` in `PriorSet` should not have have `list()` as a...

Resolve "`sample_subset` in `PriorSet` should not have have `list()` as a default argument for `keys`"
parent c1673158
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment