We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d928618 commit 7918287Copy full SHA for 7918287
source/train/Data.py
@@ -145,7 +145,10 @@ def get_test (self, ntests = -1) :
145
return ret
146
147
def get_ntypes(self) :
148
- return len(self.type_map)
+ if self.type_map is not None:
149
+ return len(self.type_map)
150
+ else:
151
+ return max(self.get_atom_type()) + 1
152
153
def get_type_map(self) :
154
return self.type_map
0 commit comments