Skip to content

Commit 81862cf

Browse files
authored
Merge pull request #417 from yisangriB/master
Minor update for quoFEM
2 parents 9b05251 + 6c0d8e9 commit 81862cf

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

modules/Workflow/whale/main.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2598,6 +2598,14 @@ def simulate_response(self, AIM_file_path='AIM.json', asst_id=None): # noqa: C9
25982598
os.chdir(asst_id)
25992599

26002600
try:
2601+
2602+
2603+
# Open the file and count the number of lines (rows)
2604+
with open('dakotaTab.out', 'r') as file:
2605+
num_rows = sum(1 for line in file)
2606+
if num_rows<2:
2607+
raise RuntimeError(f"dakotaTab.out is empty")
2608+
26012609
# sy, abs - added try-statement because dakota-reliability does not write DakotaTab.out
26022610
dakota_out = pd.read_csv(
26032611
'dakotaTab.out', sep=r'\s+', header=0, index_col=0

0 commit comments

Comments
 (0)