Skip to content

Commit 12606f2

Browse files
Update datajoint/table.py
Co-authored-by: Dimitri Yatsenko <[email protected]>
1 parent 8755db7 commit 12606f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datajoint/table.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ def declare(self, context=None):
9898
"e.g. from inside a populate/make call"
9999
)
100100
# Enforce strict CamelCase #1150
101-
if "_" in self.class_name:
101+
if not is_camel_case(self.class_name):
102102
raise DataJointError(
103-
"Table with class name `{name}` contains an underscore. ".format(
103+
"Table class name `{name}` is invalid. Please use CamelCase. ".format(
104104
name=self.class_name
105105
)
106106
+ "Classes defining tables should be formatted in strict CamelCase."

0 commit comments

Comments
 (0)