def _read_info_as_dict(fid, values):
    """Convenience function to read info in axon data to a nicely organized
    dict.
    """
    output = {}
    for key, fmt in values:
        val = unpack(fmt, fid.read(calcsize(fmt)))
        if len(val) == 1:
            output[key] = val[0]
        else:
            output[key] = val
    return output
def _read_info_as_dict ( fid , values ) : output = { } for key , fmt in values : val = unpack ( fmt , fid . read ( calcsize ( fmt ) ) ) if len ( val ) == 1 : output [ key ] = val [ 0 ] else : output [ key ] = val return output
Convenience function to read info in axon data to a nicely organized
    dict.