def hypo_list(nodes):
    """
    :param nodes: a hypoList node with N hypocenter nodes
    :returns: a numpy array of shape (N, 3) with strike, dip and weight
    """
    check_weights(nodes)
    data = []
    for node in nodes:
        data.append([node['alongStrike'], node['downDip'], node['weight']])
    return numpy.array(data, float)
def hypo_list ( nodes ) : check_weights ( nodes ) data = [ ] for node in nodes : data . append ( [ node [ 'alongStrike' ] , node [ 'downDip' ] , node [ 'weight' ] ] ) return numpy . array ( data , float )
:param nodes: a hypoList node with N hypocenter nodes
    :returns: a numpy array of shape (N, 3) with strike, dip and weight