OpenFAST / matlab-toolbox

Collection of Matlab tools developed for use with OpenFAST
Apache License 2.0
50 stars 67 forks source link

Cleanup file conversions + OutList updates #40

Closed bjonkman closed 1 year ago

bjonkman commented 1 year ago

I've updated the Write_CheckOutList files with the changes I had made to the code earlier (sept 2022), plus fixed a bug in the SubDyn output channel units.

This also updates some of the code for reading/writing OpenFAST input files. Note that the code is assuming that HD files will be updated to the format necessary for https://github.com/OpenFAST/openfast/pull/1008. Template files are also updated for that version of OpenFAST.

@ebranlard: I tried to update with your Octave compatibility changes, but let me know if I missed something. (Or if you want the template files reverted...)

ebranlard commented 1 year ago

Thanks, that looks good to me. Most likely, endsWith is also not available in Octave, but I can deal with it when I get to it!

bjonkman commented 1 year ago

@ebranlard , I had searched that endsWith is in Octave: https://docs.octave.org/latest/Searching-in-Strings.html But it looks like that same documentation says it has startsWith, so it's probably an issue in the version you're using, too. Sorry about that!

ebranlard commented 1 year ago

My version is 6.4 which is a year old. I'm going to update it...