Skip to content

Commit 7a980f5

Browse files
authored
Merge pull request #3130 from louis-papillon/bugfix_elastodyn_tower_abs_path
Fix FAST_Reader bug when ElastoDyn tower file path is absolute
2 parents 883c72e + 00cf2a5 commit 7a980f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

openfast_io/openfast_io/FAST_reader.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3479,6 +3479,8 @@ def execute(self):
34793479

34803480
if not os.path.isabs(self.fst_vt['ElastoDyn']['TwrFile']):
34813481
ed_tower_file = os.path.join(os.path.dirname(ed_file), self.fst_vt['ElastoDyn']['TwrFile'])
3482+
else:
3483+
ed_tower_file = self.fst_vt['ElastoDyn']['TwrFile']
34823484
self.read_ElastoDynTower(ed_tower_file)
34833485

34843486
if self.fst_vt['Fst']['CompInflow'] == 1:

0 commit comments

Comments
 (0)