Skip to content

Commit

Permalink
Fix error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
rafmudaf committed Dec 5, 2024
1 parent 8d1db44 commit 03ade3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions floris/floris_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1771,8 +1771,8 @@ def merge_floris_models(fmodel_list, reference_wind_height=None):
or general solver settings.
"""

if not isinstance(fmodel_list[0], FlorisModel):
raise ValueError(
if not all( type(fm) == FlorisModel for fm in fmodel_list ):
raise TypeError(
"Incompatible input specified. fmodel_list must be a list of FlorisModel objects."
)

Expand Down

0 comments on commit 03ade3d

Please sign in to comment.