Skip to content

Commit 3a3371a

Browse files
author
JCGoran
committed
Fix lint warnings
1 parent ffb1c77 commit 3a3371a

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

python/fitk/interfaces/coffe_interfaces.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,8 @@ def signal(
575575
np.full(interp_size_limit, bias.values[-1]),
576576
]
577577
)
578+
else:
579+
raise ValueError(f"Unable to interpolate beyond {interp_size_limit}")
578580

579581
for index, bias in enumerate(self._allowed_biases):
580582
getattr(cosmo, f"set_{bias.longname}_bias1")(
@@ -630,6 +632,8 @@ def covariance(
630632
np.full(interp_size_limit, bias.values[-1]),
631633
]
632634
)
635+
else:
636+
raise ValueError(f"Unable to interpolate beyond {interp_size_limit}")
633637

634638
for index, bias in enumerate(self._allowed_biases):
635639
getattr(cosmo, f"set_{bias.longname}_bias1")(

python/fitk/tensors.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1858,6 +1858,8 @@ def __truediv__(
18581858

18591859
if other.ndim == self.ndim:
18601860
values = self.values / reindex_array(other.values, index)
1861+
else:
1862+
raise MismatchingSizeError(other.ndim, self.ndim)
18611863
else:
18621864
values = self.values / other
18631865

@@ -1892,6 +1894,9 @@ def __mul__(
18921894

18931895
if other.ndim == self.ndim:
18941896
values = self.values * reindex_array(other.values, index)
1897+
else:
1898+
raise MismatchingSizeError(other.ndim, self.ndim)
1899+
18951900
else:
18961901
values = self.values * other
18971902

tests/test_derivatives.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ def signal(
122122
name, value = arg
123123
if name == "x":
124124
x = value
125-
126-
return np.array([x])
125+
return np.array([x])
126+
raise NotImplementedError("Something went wrong")
127127

128128

129129
class GaussianDerivative(FisherDerivative):

0 commit comments

Comments
 (0)