MCPcopy
hub / github.com/facefusion/facefusion / create_float_range

Function create_float_range

facefusion/common_helper.py:35–42  ·  view source on GitHub ↗
(start : float, end : float, step : float)

Source from the content-addressed store, hash-verified

33
34
35def create_float_range(start : float, end : float, step : float) -> Sequence[float]:
36 float_range = []
37 current = start
38
39 while current <= end:
40 float_range.append(round(current, 2))
41 current = round(current + step, 2)
42 return float_range
43
44
45def calculate_int_step(int_range : Sequence[int]) -> int:

Callers 7

choices.pyFile · 0.90
choices.pyFile · 0.90
choices.pyFile · 0.90
choices.pyFile · 0.90
choices.pyFile · 0.90
test_create_int_rangeFunction · 0.90
test_create_float_rangeFunction · 0.90

Calls

no outgoing calls

Tested by 2

test_create_int_rangeFunction · 0.72
test_create_float_rangeFunction · 0.72