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

Merge branch...

Merge branch '154-sample_subset-in-priorset-should-not-have-have-list-as-a-default-argument-for-keys' into 'master'

Resolve "`sample_subset` in `PriorSet` should not have have `list()` as a default argument for `keys`"

Closes #154

See merge request Monash/tupak!129
parents c1673158 f3187c54
No related branches found
No related tags found
1 merge request!129Resolve "`sample_subset` in `PriorSet` should not have have `list()` as a default argument for `keys`"
Pipeline #26908 passed
......@@ -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