Skip to content

Commit 624e46a

Browse files
committed
🐛 Use staticmethod.
Signed-off-by: Shan E Ahmed Raza <[email protected]>
1 parent fea5be9 commit 624e46a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tiatoolbox/models/engine/engine_abc.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,9 +1029,8 @@ def _run_patch_mode(
10291029
**kwargs,
10301030
)
10311031

1032-
def _calculate_scale_factor(
1033-
self: EngineABC, dataloader: DataLoader
1034-
) -> float | tuple[float, float]:
1032+
@staticmethod
1033+
def _calculate_scale_factor(dataloader: DataLoader) -> float | tuple[float, float]:
10351034
"""Calculates scale factor for final output.
10361035
10371036
Uses the dataloader resolution and the WSI resolution to calculate scale

0 commit comments

Comments
 (0)