Skip to content

Commit 2797f37

Browse files
committed
linting
1 parent e1ccae7 commit 2797f37

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

docs/examples/shading/plot_partial_module_shading_simple.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
from pvlib import pvsystem, singlediode
3939
import pandas as pd
4040
import numpy as np
41-
from scipy.interpolate import make_interp_spline
4241
import matplotlib.pyplot as plt
4342

4443
from scipy.constants import e as qe, k as kB
@@ -179,7 +178,8 @@ def plot_curves(dfs, labels, title):
179178

180179
def interpolate(df, i):
181180
"""convenience wrapper around numpy.interp"""
182-
return np.interp(i,np.flipud(df['i']), np.flipud(df['v']))
181+
return np.interp(i, np.flipud(df['i']), np.flipud(df['v']))
182+
183183

184184
def combine_series(dfs):
185185
"""

pvlib/iam.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,9 @@ def interp(aoi, theta_ref, iam_ref, method='linear', normalize=True):
491491
interpolator = make_interp_spline(theta_ref, iam_ref, k=3)
492492

493493
else:
494-
raise ValueError(f"Interpolation method '{method}' is not supported in pvlib-python.")
494+
raise ValueError(
495+
f"Interpolation method '{method}' is not supported"
496+
" in pvlib-python.")
495497

496498
aoi_input = aoi
497499
aoi = np.asanyarray(aoi)

0 commit comments

Comments
 (0)