You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello developers,
So I was trying to use the reading and writing capabilities of fast-io in ROSCO toolbox. I ran into an issue with the method write_ServoDyn in FAST_writer.py, specifically when writing input data under - STRUCTURAL CONTROL - section. The issue was with writing StC file names. For example:
Intended output for line 67 in ServoDyn input file: "unused" BStCfiles - Name of the files for blade structural controllers (quoted strings) [unused when NumBStC==0]
actual output using write_ServoDyn: "u" "n" "u" "s" "e" "d" BStCfiles - Name of the files for blade structural controllers (quoted strings) [unused when NumBStC==0]
I fixed the issue in my forked version by changing lines 1296, 1298,1300, and 1302 in FAST_writer.py as follows:
Thanks, Rudy! I have seen this before, too. Thanks for the nice instructions and sorry for the long delay. I'll leave this open until we implement your suggested fix.
Hello developers,
So I was trying to use the reading and writing capabilities of fast-io in ROSCO toolbox. I ran into an issue with the method write_ServoDyn in FAST_writer.py, specifically when writing input data under - STRUCTURAL CONTROL - section. The issue was with writing StC file names. For example:
Intended output for line 67 in ServoDyn input file:
"unused" BStCfiles - Name of the files for blade structural controllers (quoted strings) [unused when NumBStC==0]
actual output using write_ServoDyn:
"u" "n" "u" "s" "e" "d" BStCfiles - Name of the files for blade structural controllers (quoted strings) [unused when NumBStC==0]
I fixed the issue in my forked version by changing lines 1296, 1298,1300, and 1302 in FAST_writer.py as follows:
Old:
f.write('{!s:<22} {:<11} {:}'.format('"' + '" "'.join(self.fst_vt['ServoDyn'] ...
New:
f.write('{!s:<22} {:<11} {:}'.format('"' + ''.join(self.fst_vt['ServoDyn'] ...
To replicate the error using a simple python script:
I hope this helps.
Best
The text was updated successfully, but these errors were encountered: