Skip to content

Commit 5bbc1e9

Browse files
project out secondary attributes from key_source tables before joining them
1 parent b9d3334 commit 5bbc1e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datajoint/autopopulate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ class AutoPopulate:
2626
@property
2727
def key_source(self):
2828
"""
29-
:return: the relation whose primary key values are passed, sequentially, to the
29+
:return: the query expression whose primary key values are passed, sequentially, to the
3030
``make`` method when populate() is called.
3131
The default value is the join of the parent relations.
3232
Users may override to change the granularity or the scope of populate() calls.
3333
"""
3434
def _rename_attributes(table, props):
3535
return (table.proj(
3636
**{attr: ref for attr, ref in props['attr_map'].items() if attr != ref})
37-
if props['aliased'] else table)
37+
if props['aliased'] else table.proj())
3838

3939
if self._key_source is None:
4040
parents = self.target.parents(primary=True, as_objects=True, foreign_key_info=True)

0 commit comments

Comments
 (0)