Skip to content

OpenFAST_IO error if BDBldFile is empty #2762

@abhineet-gupta

Description

@abhineet-gupta

Bug description
OpenFAST_IO tries to read non-existent beamdyn files

To Reproduce
Try to read a case using openfast_io/FAST_reader.py where CompElast=1 and BDBldFile(:) = ""

Expected behavior
OpenFAST_IO should skip reading any BeamDyn files.

OpenFAST Version
OpenFAST_IO 4.0.3

Suggested Fix
This issue can be fixed by changing os.path.exists to os.path.isfile in this line:

if os.path.exists(bd_file1):

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions