Skip to content

Commit f6f5c04

Browse files
committed
Fix black formatting
1 parent 03e705f commit f6f5c04

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

pysensors/classification/_sspoc.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,13 @@ def __init__(
143143
self.n_basis_modes = None
144144

145145
def fit(
146-
self, x, y, quiet=False, prefit_basis=False, refit=True, **optimizer_kws,
146+
self,
147+
x,
148+
y,
149+
quiet=False,
150+
prefit_basis=False,
151+
refit=True,
152+
**optimizer_kws,
147153
):
148154
"""
149155
Fit the SSPOC model, determining which sensors are relevant.
@@ -344,7 +350,8 @@ def update_sensors(
344350
)
345351
if (
346352
method(
347-
np.abs(self.sensor_coef_[sorted_sensors[-1], :]), **method_kws,
353+
np.abs(self.sensor_coef_[sorted_sensors[-1], :]),
354+
**method_kws,
348355
)
349356
== 0
350357
and warn

pysensors/pysensors.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,9 @@ def score(self, x, y=None, score_function=None, score_kws={}, solve_kws={}):
405405
)
406406
else:
407407
return score_function(
408-
x, self.predict(x[:, sensors], **solve_kws), **score_kws,
408+
x,
409+
self.predict(x[:, sensors], **solve_kws),
410+
**score_kws,
409411
)
410412

411413
def reconstruction_error(self, x_test, sensor_range=None, score=None, **solve_kws):

0 commit comments

Comments
 (0)