diff seg2matrix/CGData/BaseTable.py @ 50:b6f5d2d1b047

fix
author jingchunzhu
date Tue, 25 Aug 2015 23:42:17 -0700
parents ab20c0d04f4a
children 3a036a34c362
line wrap: on
line diff
--- a/seg2matrix/CGData/BaseTable.py	Fri Aug 14 00:17:55 2015 -0700
+++ b/seg2matrix/CGData/BaseTable.py	Tue Aug 25 23:42:17 2015 -0700
@@ -64,7 +64,7 @@
         for row in read:
             linenum += 1
             r = self.__row_class__()
-            if comment is None or not row[0].startswith(comment):
+            if (comment is None or not row[0].startswith(comment)) and not row[0].startswith("#"):
                 for i, col in enumerate(cols):
                     isOptional = False
                     if 'columnDef' in self['cgformat'] and col in self['cgformat']['columnDef'] and 'optional' in self['cgformat']['columnDef'][col]: