Skip to content

Commit c40858f

Browse files
committed
Run ruff
1 parent 2db5660 commit c40858f

4 files changed

Lines changed: 5 additions & 7 deletions

File tree

src/openscm_calibration/cost/scmdata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class AlignmentError(ValueError):
2222
Raised when our data's metadata does not align as expected
2323
"""
2424

25-
def __init__( # noqa: PLR0913
25+
def __init__(
2626
self,
2727
name_left: str,
2828
val_left: pd.DataFrame | pd.Series[Any],

src/openscm_calibration/emcee_plotting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ def plot_emcee_progress( # noqa: PLR0913
674674
def enough_autocorr_values_to_plot(autocorr: nptype.NDArray[np.float64]) -> bool:
675675
"""Check whether there is any auto-correlation information to plot"""
676676
values_to_plot_present = np.logical_and(
677-
autocorr > 0.0, # noqa: PLR2004
677+
autocorr > 0.0,
678678
np.logical_not(np.isnan(autocorr)),
679679
)
680680

src/openscm_calibration/emcee_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ class AutoCorrelationInfo:
296296
[`get_autocorrelation_info`][openscm_calibration.emcee_utils.get_autocorrelation_info].
297297
"""
298298

299-
converged: nptype.NDArray[np.bool] # noqa: NPY001 # have to use np type for type hinting
299+
converged: nptype.NDArray[np.bool]
300300
"""
301301
Whether, based on `convergence_ratio`, the chains for each parameter have converged
302302

src/openscm_calibration/parameter_handling.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,10 @@ class ParameterDefinition(Generic[BoundsValue]):
6666
"""The bounds for the parameter"""
6767

6868
@overload
69-
def bounds_m(self, unit: None = None) -> tuple[BoundsValue, BoundsValue]:
70-
...
69+
def bounds_m(self, unit: None = None) -> tuple[BoundsValue, BoundsValue]: ...
7170

7271
@overload
73-
def bounds_m(self, unit: str) -> tuple[float, float]:
74-
...
72+
def bounds_m(self, unit: str) -> tuple[float, float]: ...
7573

7674
def bounds_m(
7775
self, unit: str | None = None

0 commit comments

Comments
 (0)