Skip to content

Commit 9a5b846

Browse files
committed
Merge commit 'b63477a1088e523cb4e25ce2443e61f29f99c6c3'
2 parents d52a87a + b63477a commit 9a5b846

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

gspy/src/utilities/aseg_gdf_handler.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,14 @@ def parse_dfn_file(self, dfn_file_name):
106106
dfn_md = {}
107107
for line in lines[1:]:
108108
if "END DEFN" in line:
109-
break
109+
line = line.replace(";END DEFN", "")
110110

111111
info = line.split(";")[-1]
112112
tmp = info.split(":")
113+
114+
if len(tmp) == 1:
115+
break
116+
113117
standard_name, format = tmp[:2]
114118

115119
if ' ' in standard_name:

0 commit comments

Comments
 (0)