Skip to content

Commit f8c3668

Browse files
replace .describe() with .definition to augment the table docstring
1 parent 4533cea commit f8c3668

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

datajoint/schema.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,7 @@ def process_table_class(self, table_class, context, assert_declared=False):
193193

194194
# add table definition to the doc string
195195
if isinstance(table_class.definition, str):
196-
table_class.__doc__ = ((table_class.__doc__ or "") + "\nTable definition:\n\n"
197-
+ table_class.describe(printout=False, context=context))
196+
table_class.__doc__ = (table_class.__doc__ or "") + "\nTable definition:\n\n" + table_class.definition
198197

199198
# fill values in Lookup tables from their contents property
200199
if isinstance(instance, Lookup) and hasattr(instance, 'contents') and is_declared:

0 commit comments

Comments
 (0)