Skip to content

Commit

Permalink
doc: added TODO for why if statement was excluded from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
MothNik committed May 12, 2024
1 parent 16ef45c commit 3d54add
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion chemotools/utils/whittaker_base/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,12 @@ def _solve_single_b_fixed_lam(
# the weights and the weighted series are computed depending on whether weights
# are provided or not
# Case 1: no weights are provided
if isinstance(w, float):
# TODO: this case is not possible under the current implementations for the
# calls of any of the child classes because they either use weights or
# the most efficient way around going into this method in the first place;
# in the future this might change and thus, this case is kept for now, but
# ignored for coverage
if isinstance(w, float): # pragma: no cover
return (
self._solve(
lam=lam,
Expand Down

0 comments on commit 3d54add

Please sign in to comment.