Godtone (talk | contribs)
→My Python 3 code: FIX OLD BUG FINALLY (i just wasnt looking very carefully apparently)
Godtone (talk | contribs)
m →My Python 3 code: allow specifying subgroup and/or equave in any order after threshold in inconsistent_ivs_by_val function's arguments
Line 812: Line 812:
pset |= {frozenset([ s[j] for j in range(len(s)) if (i & (1<<j)) ])}
pset |= {frozenset([ s[j] for j in range(len(s)) if (i & (1<<j)) ])}
return pset
return pset
def inconsistent_ivs_by_val(ivs, val, threshold=1/2):
def inconsistent_ivs_by_val(ivs, val, threshold=1/2, sg=None, equave=None):
return [ i for i in ivs if abs(iv_map_err(i,val))>=threshold ]
return [ i for i in ivs if abs(iv_map_err(i,val,sg,equave))>=threshold ]
def deduce_subgroup(r):
def deduce_subgroup(r):
if type(r)==tuple:
if type(r)==tuple: