Skip to content

Commit

Permalink
Changed ROSCO Discon file (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindvenkatachalapathy authored Nov 29, 2023
1 parent 16e917c commit dbb4c27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,5 @@ venv.bak/
# Hidding files starting with underscore except init
_*
!__init__.py
*.xml
*.iml
4 changes: 2 additions & 2 deletions openfast_toolbox/io/rosco_discon_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def toString(self):
fmtFloat=fmt
break
if type(v) is str:
sval='"{:15s}" '.format(v)
sval='"{}" '.format(v)
elif hasattr(v, '__len__'):
if isinstance(v[0], (np.floating, float)):
sval=' '.join([fmtFloat.format(vi) for vi in v] )+' '
Expand All @@ -154,7 +154,7 @@ def toString(self):
sval=fmtFloat.format(v) + ' '
else:
sval='{} '.format(v)
s+='{}{}{}\n'.format(sval, sparam, comment)
s+='{:20s}{}{}\n'.format(sval, sparam, comment)
return s


Expand Down

0 comments on commit dbb4c27

Please sign in to comment.