Godtone (talk | contribs)
ADD NEW COLOURING MODE!!! (autorelative=True on all models but relative=True on Launchpad Pro MK3 only for now (will make applicable to all in future)). ALSO: (hopefully) fix highlighting subsets for nontrivial rainbows, add 33- & 37-colour rainbows for more completeness and add notes about likely duplicate factory colors/colours found
Godtone (talk | contribs)
m My Python 3 code: bugfix (overgreedy parameter type detection)
Line 1,320: Line 1,320:
ivs = [x for x in odd_lim(ivs_int_cache) if x[0] <= ivs_int_cache]
ivs = [x for x in odd_lim(ivs_int_cache) if x[0] <= ivs_int_cache]
ivs_cache = ivs
ivs_cache = ivs
elif type(ivs)==list and type(ivs[0])==int or type(ivs)==set: # specify odd-limit in terms of list/set of odds
elif (type(ivs)==list or type(ivs)==set) and all([ type(x)==int for x in ivs ]): # specify odd-limit in terms of list/set of odds
ivs = odd_lim(1,[],ivs)
ivs = odd_lim(1,[],ivs)
# else: it's assumed we have a list or set of 2-tuples of integers (a list or set of intervals)
# else: it's assumed we have a list or set of 2-tuples of integers (a list or set of intervals)