Skip to content

Commit

Permalink
Try printing RAFT inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
dzalkind committed Oct 2, 2024
1 parent 419fac1 commit d384942
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion examples/15_RAFT_Studies/weis_driver_raft_opt.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
import time
import sys
import subprocess

from weis.glue_code.runWEIS import run_weis
from wisdem.commonse.mpi_tools import MPI
Expand All @@ -27,5 +28,12 @@
# Test that the input we are providing RAFT has not changed
this_raft_input = load_yaml(os.path.join(run_dir,'outputs','15_RAFT_Rect','raft_designs','raft_design_0.yaml'))
standard_raft_input = load_yaml(os.path.join(run_dir,'raft_input_weis.yaml'))
assert(this_raft_input == standard_raft_input)
if this_raft_input != standard_raft_input:
print('this_raft_input:')
subprocess.call(['cat',os.path.join(run_dir,'outputs','15_RAFT_Rect','raft_designs','raft_design_0.yaml')])

print('standard_raft_input:')
subprocess.call(['cat',os.path.join(run_dir,'raft_input_weis.yaml')])
assert(False)

# If the values have changed for a purpose, move this_raft_input to standard_raft_input and commit

0 comments on commit d384942

Please sign in to comment.