@@ -93,7 +93,7 @@ def _rename_attributes(table, props):
9393 self ._key_source *= _rename_attributes (* q )
9494 return self ._key_source
9595
96- def make (self , key ):
96+ def make (self , key , ** kwargs ):
9797 """
9898 This method must be implemented by derived classes to perform automated computation.
9999 The method must implement the following three steps:
@@ -136,6 +136,8 @@ def make(self, key):
136136 DataJoint may programmatically enforce this separation in the future.
137137
138138 :param key: The primary key value used to restrict the data fetching.
139+ :param kwargs: Keyword arguments passed from populate(make_kwargs=...).
140+ These are passed to make_fetch for the tripartite pattern.
139141 :raises NotImplementedError: If the derived class does not implement the required methods.
140142 """
141143
@@ -153,7 +155,7 @@ def make(self, key):
153155 # User has implemented `_fetch`, `_compute`, and `_insert` methods instead
154156
155157 # Step 1: Fetch data from parent tables
156- fetched_data = self .make_fetch (key ) # fetched_data is a tuple
158+ fetched_data = self .make_fetch (key , ** kwargs ) # fetched_data is a tuple
157159 computed_result = yield fetched_data # passed as input into make_compute
158160
159161 # Step 2: If computed result is not passed in, compute the result
0 commit comments