Skip to content

Commit

Permalink
Update black major version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
markcampanelli committed May 9, 2024
1 parent b1c280e commit 982a453
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions pvfit/modeling/dc/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ def get_scaled_thermal_voltage(
class IamFunction(Protocol):
"""Type definition for incident-angle modifier functions."""

def __call__(self, *, angle_deg: FloatArray) -> FloatArray:
...
def __call__(self, *, angle_deg: FloatArray) -> FloatArray: ...


def iam_factory(*, iam_angle_deg: FloatArray, iam_frac: FloatArray) -> IamFunction:
Expand All @@ -120,8 +119,7 @@ def iam(*, angle_deg: FloatArray) -> FloatArray:
class ConstantThenLinearDegradationFunction(Protocol):
"""Type definition for constant-then-linear degradation functions."""

def __call__(self, *, years_since_commissioning: FloatArray) -> FloatArray:
...
def __call__(self, *, years_since_commissioning: FloatArray) -> FloatArray: ...


def constant_then_linear_degredation_factory(
Expand All @@ -145,10 +143,10 @@ def constant_then_linear_degredation(
0 <= years_since_commissioning, years_since_commissioning <= 1
)
] = first_year_degredation
fractional_degredation[
1 < years_since_commissioning
] = first_year_degredation + subsequent_year_degredation * (
years_since_commissioning[1 < years_since_commissioning] - 1
fractional_degredation[1 < years_since_commissioning] = (
first_year_degredation
+ subsequent_year_degredation
* (years_since_commissioning[1 < years_since_commissioning] - 1)
)

return fractional_degredation
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dependencies = [
[project.optional-dependencies]
dev = [
"build >=1.2.1, <2",
"black >=23, <24",
"black >=24, <25",
"check-manifest >=0.49, <0.50",
"pylint >=2, <3",
]
Expand Down

0 comments on commit 982a453

Please sign in to comment.