MCPcopy Index your code
hub / github.com/clips/pattern / drange

Function drange

pattern/web/pdf/utils.py:64–67  ·  view source on GitHub ↗

Returns a discrete range.

(v0, v1, d)

Source from the content-addressed store, hash-verified

62
63# drange
64def drange(v0, v1, d):
65 """Returns a discrete range."""
66 assert v0 < v1
67 return xrange(int(v0)/d, int(v1+d-1)/d)
68
69# get_bound
70def get_bound(pts):

Callers 1

_getrangeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…