Skip to content

Commit

Permalink
refactor docstring for _remap_level
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestoarbitrio authored and alessiamarcolini committed Jan 8, 2021
1 parent 599041e commit a6109ea
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/histolab/slide.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,16 +412,17 @@ def _remap_level(self, level: int) -> int:
Parameters
----------
level: int
level : int
the level index to remap
Raises
------
LevelError when the abs(level) is greater than the number of the levels.
LevelError
when the abs(level) is greater than the number of the levels.
Returns
-------
level: int
level : int
positive level index
"""
if len(self.levels) - abs(level) < 0:
Expand Down

0 comments on commit a6109ea

Please sign in to comment.