MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / sort

Method sort

k_diffusion/sampling.py:83–84  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

81
82 @staticmethod
83 def sort(a, b):
84 return (a, b, 1) if a < b else (b, a, -1)
85
86 def __call__(self, t0, t1):
87 t0, t1, sign = self.sort(t0, t1)

Callers 2

__init__Method · 0.95
__call__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected