Skip to content

Bug report: Fast_writer.py contains type error #3431

Description

@jcvem

Bug description

Found and fixed a type cast missing in FAST_writer.py
At L:620 of FAST_writer.py contains a str + int type error.
Should be patched with the missing str() casting function

To Reproduce


from openfast_io.FAST_writer import InputWriter_OpenFAST
import copy

reader = InputReader_OpenFAST()
reader.FAST_InputFile = "case.fst"
reader.FAST_directory = "/path/to/case"
reader.read_MainInput()
reader.read_ElastoDyn("NRELOffshrBsline5MW_OC4DeepCwindSemi_ElastoDyn.dat")  # populates ElastoDynBlade as a list of 3

writer = InputWriter_OpenFAST()
writer.fst_vt = copy.deepcopy(reader.fst_vt)
writer.FAST_namingOut = "case"
writer.FAST_runDirectory = "/tmp/out"
writer.execute()   # <-- CRASHES here with TypeError: can only concatenate str (not "int") to str

Expected behavior

Screenshots, if applicable

OpenFAST Version

**************************************************************************************************
 OpenFAST

 Copyright (C)  National Renewable Energy Laboratory
 Copyright (C)  Envision Energy USA LTD

 This program is licensed under Apache License Version 2.0 and comes with ABSOLUTELY NO WARRANTY.
 See the "LICENSE" file distributed with this software for details.
 **************************************************************************************************

 OpenFAST-v5.0.0

System Information (please complete the following information):

  • OS: macOS 26.5.2

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions