soapypower/__main__.py
def specific_gains(string):
    """Convert string with gains of individual amplification elements to dict"""
    if not string:
        return {}

    gains = {}
    for gain in string.split(','):
        amp_name, value = gain.split('=')
        gains[amp_name.strip()] = float(value.strip())
    return gains
def specific_gains(string):
    if not string:
        return {}

    gains = {}
    for gain in string.split(','):
        amp_name, value = gain.split('=')
        gains[amp_name.strip()] = float(value.strip())
    return gains
def specific_gains ( string ) : if not string : return { } gains = { } for gain in string . split ( ',' ) : amp_name , value = gain . split ( '=' ) gains [ amp_name . strip ( ) ] = float ( value . strip ( ) ) return gains
Convert string with gains of individual amplification elements to dict
Convert string with gains of individual amplification elements to dict