Skip to content

Commit

Permalink
Lint and support older Python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
rafmudaf committed Nov 7, 2024
1 parent b3e2d93 commit 4689da5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion floris/core/turbine/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

from floris.core.turbine.mit_turbine import MITTurbine
from floris.core.turbine.operation_models import (
AWCTurbine,
CosineLossTurbine,
Expand All @@ -7,4 +8,3 @@
SimpleDeratingTurbine,
SimpleTurbine,
)
from floris.core.turbine.mit_turbine import MITTurbine
2 changes: 2 additions & 0 deletions floris/core/turbine/mit_turbine.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

from __future__ import annotations

from dataclasses import dataclass
from typing import (
Any,
Expand Down
2 changes: 1 addition & 1 deletion floris/core/turbine/turbine.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
from floris.core.turbine import (
AWCTurbine,
CosineLossTurbine,
MITTurbine,
MixedOperationTurbine,
PeakShavingTurbine,
SimpleDeratingTurbine,
SimpleTurbine,
MITTurbine,
)
from floris.type_dec import (
convert_to_path,
Expand Down
3 changes: 1 addition & 2 deletions tests/turbine_operation_models_unit_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import numpy as np
import pytest

from floris.core.turbine.mit_turbine import MITTurbine
from floris.core.turbine.operation_models import (
AWCTurbine,
CosineLossTurbine,
Expand All @@ -10,7 +11,6 @@
SimpleDeratingTurbine,
SimpleTurbine,
)
from floris.core.turbine.mit_turbine import MITTurbine
from floris.utilities import cosd
from tests.conftest import SampleInputs, WIND_SPEEDS

Expand Down Expand Up @@ -715,4 +715,3 @@ def test_MITTurbine():
tilt_interp=None
)
assert test_power < baseline_power

0 comments on commit 4689da5

Please sign in to comment.