MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / steps

Function steps

tools/python-3.11.9-amd64/Tools/demo/sortvisu.py:337–345  ·  view source on GitHub ↗
(here, there)

Source from the content-addressed store, hash-verified

335# Subroutines that don't need an object
336
337def steps(here, there):
338 nsteps = abs(here - there)
339 if nsteps <= 3:
340 nsteps = nsteps * 3
341 elif nsteps <= 5:
342 nsteps = nsteps * 2
343 elif nsteps > 10:
344 nsteps = 10
345 return nsteps
346
347def interpolate(oldpts, newpts, n):
348 if len(oldpts) != len(newpts):

Callers 2

setindexMethod · 0.85
swapwithMethod · 0.85

Calls 1

absFunction · 0.50

Tested by

no test coverage detected