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
3 changes: 3 additions & 0 deletions datajoint/autopopulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ def _jobs_to_do(self, restrictions):
"""
:return: the relation containing the keys to be computed (derived from self.key_source)
"""
if self.restriction:
raise DataJointError('Cannot call populate on a restricted table. '
'Instead, pass conditions to populate() as arguments.')
todo = self.key_source
if not isinstance(todo, RelationalOperand):
raise DataJointError('Invalid key_source value')
Expand Down
2 changes: 1 addition & 1 deletion datajoint/user_relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# attributes that trigger instantiation of user classes
supported_class_attrs = set((
'key_source', 'describe', 'populate', 'progress',
'key_source', 'describe', 'populate', 'progress', 'primary_key',
'proj', 'aggr', 'heading', 'fetch', 'fetch1',
'insert', 'insert1', 'drop', 'drop_quick',
'delete', 'delete_quick'))
Expand Down