Godtone
Joined 17 December 2020
mNo edit summary |
m convenience conversion function |
||
| Line 1,431: | Line 1,431: | ||
return optimal_edo_sequence(lambda edo: et_badness(ivs,edo,lambda rel_err: rel_err**2,weighting,combine,mapping),edo_set) | return optimal_edo_sequence(lambda edo: et_badness(ivs,edo,lambda rel_err: rel_err**2,weighting,combine,mapping),edo_set) | ||
def comma_list_to_commas(liststr): | |||
commastrs = [] | |||
if ',' in liststr: | |||
commastrs = [comma.strip() for comma in liststr.split(',')] | |||
else: | |||
commastrs = liststr.split() | |||
return [iv( int(comma.split('/')[0]), int(comma.split('/')[1]) ) for comma in commastrs] | |||
</syntaxhighlight> | </syntaxhighlight> | ||