Skip to content

Commit 6604fd1

Browse files
committed
add no covers for not important code
1 parent 03702af commit 6604fd1

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

skmpe/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
try:
3535
__version__ = metadata('scikit-mpe')['version']
36-
except PackageNotFoundError:
36+
except PackageNotFoundError: # pragma: no cover
3737
__version__ = '0.0.0.dev'
3838

3939

skmpe/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from pydantic import BaseModel, Extra, validator, root_validator
1010
import numpy as np
1111

12-
if TYPE_CHECKING:
12+
if TYPE_CHECKING: # pragma: no cover
1313
from ._parameters import Parameters # noqa
1414
from ._mpe import PathExtractionResult # noqa
1515

skmpe/_exceptions.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ def __init__(self, *args,
3232
self._end_point = end_point
3333

3434
@property
35-
def travel_time(self) -> np.ndarray:
35+
def travel_time(self) -> np.ndarray: # pragma: no cover
3636
"""Computed travel time data"""
3737
return self._travel_time
3838

3939
@property
40-
def start_point(self) -> PointType:
40+
def start_point(self) -> PointType: # pragma: no cover
4141
"""Starting point"""
4242
return self._start_point
4343

4444
@property
45-
def end_point(self) -> PointType:
45+
def end_point(self) -> PointType: # pragma: no cover
4646
"""Ending point"""
4747
return self._end_point
4848

@@ -65,16 +65,16 @@ def __init__(self, *args,
6565
self._reason = reason
6666

6767
@property
68-
def extracted_points(self) -> List[FloatPointType]:
68+
def extracted_points(self) -> List[FloatPointType]: # pragma: no cover
6969
"""The list of extracted path points"""
7070
return self._extracted_points
7171

7272
@property
73-
def last_distance(self) -> float:
73+
def last_distance(self) -> float: # pragma: no cover
7474
"""The last distance to the ending point from the last path point"""
7575
return self._last_distance
7676

7777
@property
78-
def reason(self) -> str:
78+
def reason(self) -> str: # pragma: no cover
7979
"""The reason of extracting path termination"""
8080
return self._reason

skmpe/_mpe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def travel_time(self) -> np.ndarray:
131131
return self._travel_time
132132

133133
@property
134-
def phi(self) -> np.ndarray:
134+
def phi(self) -> np.ndarray: # pragma: no cover
135135
"""Returns the computed phi (zero contour) for given source point
136136
"""
137137
return self._phi

skmpe/_parameters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,14 @@ class Parameters(ImmutableDataObject):
123123

124124
@validator('travel_time_order')
125125
def _check_travel_time_order(cls, v): # noqa
126-
if v == TravelTimeOrder.second:
126+
if v == TravelTimeOrder.second: # pragma: no cover
127127
raise ValueError(
128128
'Currently the second order for computing travel time does not work properly.'
129129
'\nSee the following issue for details: https://github.com/scikit-fmm/scikit-fmm/issues/28'
130130
)
131131
return v
132132

133-
def __str__(self):
133+
def __str__(self): # pragma: no cover
134134
return self.__repr_str__('\n')
135135

136136

0 commit comments

Comments
 (0)