Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 8062e41

Browse files
committed
IO:removing restriction on maximum number of outputs in outlist
1 parent 96f93ee commit 8062e41

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pyFAST/input_output/fast_input_file.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,13 +1144,10 @@ def parseFASTInputLine(line_raw,i,allowSpaceSeparatedList=False):
11441144
def parseFASTOutList(lines,iStart):
11451145
OutList=[]
11461146
i = iStart
1147-
MAX=200
1148-
while i<len(lines) and lines[i].upper().find('END')!=0:
1147+
while i<len(lines) and lines[i].upper().find('END')!=0 and lines[i].upper().find('---')!=0 and lines[i].upper().find('===')!=0:
11491148
OutList.append(lines[i]) #TODO better parsing
11501149
#print('OutList',lines[i])
11511150
i += 1
1152-
if i-iStart>MAX :
1153-
raise Exception('More that 200 lines found in outlist')
11541151
if i>=len(lines):
11551152
print('[WARN] End of file reached while reading Outlist')
11561153
#i=min(i+1,len(lines))

0 commit comments

Comments
 (0)