@@ -96,7 +96,7 @@ def _jobs_to_do(self, restrictions):
96
96
97
97
def populate (self , * restrictions , suppress_errors = False , return_exception_objects = False ,
98
98
reserve_jobs = False , order = "original" , limit = None , max_calls = None ,
99
- display_progress = False , ** kwargs ):
99
+ display_progress = False , make_kwargs = None ):
100
100
"""
101
101
rel.populate() calls rel.make(key) for every primary key in self.key_source
102
102
for which there is not already a tuple in rel.
@@ -108,7 +108,7 @@ def populate(self, *restrictions, suppress_errors=False, return_exception_object
108
108
:param display_progress: if True, report progress_bar
109
109
:param limit: if not None, checks at most that many keys
110
110
:param max_calls: if not None, populates at max that many keys
111
- :param kwargs: additional custom keyword arguments that will be passed down to each make() call
111
+ :param kwargs: optional dict containing arguments that will be passed down to each make() call
112
112
"""
113
113
if self .connection .in_transaction :
114
114
raise DataJointError ('Populate cannot be called during a transaction.' )
@@ -151,8 +151,8 @@ def handler(signum, frame):
151
151
call_count += 1
152
152
self .__class__ ._allow_insert = True
153
153
try :
154
- if kwargs :
155
- make (dict (key ), ** kwargs )
154
+ if make_kwargs is not None :
155
+ make (dict (key ), ** make_kwargs )
156
156
else :
157
157
make (dict (key ))
158
158
except (KeyboardInterrupt , SystemExit , Exception ) as error :
0 commit comments