Skip to content

Commit

Permalink
Do not cover version specific code in coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinfriede committed Sep 19, 2024
1 parent 0cf992c commit 1ec6a71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tad_dftd3/data/radii.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def _load_vdw_rad_d3(
VDW radii.
"""
kwargs: dict = {"map_location": device}
if __tversion__ > (1, 12, 1):
if __tversion__ > (1, 12, 1): # pragma: no cover
kwargs["weights_only"] = True

path = op.join(op.dirname(__file__), "vdw-d3.pt")
Expand Down
2 changes: 1 addition & 1 deletion src/tad_dftd3/reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def _load_c6(
Reference C6 coefficients.
"""
kwargs: dict = {"map_location": device}
if __tversion__ > (1, 12, 1):
if __tversion__ > (1, 12, 1): # pragma: no cover
kwargs["weights_only"] = True

path = op.join(op.dirname(__file__), "reference-c6.pt")
Expand Down

0 comments on commit 1ec6a71

Please sign in to comment.