Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions datajoint/autopopulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ class AutoPopulate:
@property
def key_source(self):
"""
:return: the relation whose primary key values are passed, sequentially, to the
``make`` method when populate() is called.
The default value is the join of the parent relations.
Users may override to change the granularity or the scope of populate() calls.
:return: the query expression that yields primary key values to be passed,
sequentially, to the ``make`` method when populate() is called.
The default value is the join of the parent relations.
Users may override to change the granularity or the scope of populate() calls.
"""
def _rename_attributes(table, props):
return (table.proj(
**{attr: ref for attr, ref in props['attr_map'].items() if attr != ref})
if props['aliased'] else table)
if props['aliased'] else table.proj())

if self._key_source is None:
parents = self.target.parents(primary=True, as_objects=True, foreign_key_info=True)
Expand Down
3 changes: 2 additions & 1 deletion datajoint/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ class Table(QueryExpression):
_table_name = None # must be defined in subclass
_log_ = None # placeholder for the Log table object

# These properties must be set by the schema decorator (schemas.py) at class level or by FreeTable at instance level
# These properties must be set by the schema decorator (schemas.py) at class level
# or by FreeTable at instance level
database = None
declaration_context = None

Expand Down