Closed blepping closed 7 months ago
Yeah I'm fine with the formatting. Cool trick too!
just noticed i missed the simple test scheduler:
sigs = []
for x in range(n):
sigs += [float(sigmas_slice[-(1 + int(x * ss))])]
sigs += [0.0]
if you want, you can just change that to:
sigs = (*(float(sigmas_slice[-(1 + int(x * ss))]) for x in range(n)), 0.0)
Fixed, thanks!
as promised!
this is 95% cosmetic - just ran it through a code formatter and made some style changes (like consistently ending list items with a comma even when it's not strictly necessary, sorting imports).
stuff like:
can be written more succinctly by unpacking a comprehension. actually didn't know about this trick until the linter suggested it:
so if you want to build a sequence with a prefix/suffix it's possible to just unpack a comprehension in the middle. since those immediately get turned into tensors, they didn't even need to be lists and could be immutable tuples instead.
these changes shouldn't affect the results in any way.
the formatting/linter is opinionated and this didn't take much effort so if you prefer the existing style please feel free to simply close this pull.