Skip to content

Commit

Permalink
add no covers for not important code
Browse files Browse the repository at this point in the history
  • Loading branch information
espdev committed May 27, 2020
1 parent 03702af commit 6604fd1
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion skmpe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

try:
__version__ = metadata('scikit-mpe')['version']
except PackageNotFoundError:
except PackageNotFoundError: # pragma: no cover
__version__ = '0.0.0.dev'


Expand Down
2 changes: 1 addition & 1 deletion skmpe/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from pydantic import BaseModel, Extra, validator, root_validator
import numpy as np

if TYPE_CHECKING:
if TYPE_CHECKING: # pragma: no cover
from ._parameters import Parameters # noqa
from ._mpe import PathExtractionResult # noqa

Expand Down
12 changes: 6 additions & 6 deletions skmpe/_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ def __init__(self, *args,
self._end_point = end_point

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

@property
def start_point(self) -> PointType:
def start_point(self) -> PointType: # pragma: no cover
"""Starting point"""
return self._start_point

@property
def end_point(self) -> PointType:
def end_point(self) -> PointType: # pragma: no cover
"""Ending point"""
return self._end_point

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

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

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

@property
def reason(self) -> str:
def reason(self) -> str: # pragma: no cover
"""The reason of extracting path termination"""
return self._reason
2 changes: 1 addition & 1 deletion skmpe/_mpe.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def travel_time(self) -> np.ndarray:
return self._travel_time

@property
def phi(self) -> np.ndarray:
def phi(self) -> np.ndarray: # pragma: no cover
"""Returns the computed phi (zero contour) for given source point
"""
return self._phi
Expand Down
4 changes: 2 additions & 2 deletions skmpe/_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,14 @@ class Parameters(ImmutableDataObject):

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

def __str__(self):
def __str__(self): # pragma: no cover
return self.__repr_str__('\n')


Expand Down

0 comments on commit 6604fd1

Please sign in to comment.