MCPcopy
hub / github.com/vladmandic/sdnext / sort

Method sort

scripts/pulid/pulid_sampling.py:95–96  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

93
94 @staticmethod
95 def sort(a, b):
96 return (a, b, 1) if a < b else (b, a, -1)
97
98 def __call__(self, t0, t1):
99 t0, t1, sign = self.sort(t0, t1)

Callers 15

__init__Method · 0.95
__call__Method · 0.95
image-grid.pyFile · 0.45
mainFunction · 0.45
fetch_danbooruFunction · 0.45
fetch_e621Function · 0.45
fetch_gelbooruFunction · 0.45
fetch_sankakuFunction · 0.45
fetch_idolFunction · 0.45
test_pipelinesFunction · 0.45
mask_by_random_topkFunction · 0.45
apply_orderFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_pipelinesFunction · 0.36