def read_positions(): head,points1 = csv_parse.read('../Baltay-fibers_random.csv',delimiter=' ') head,points2 = csv_parse.read('../Baltay-fibers_residual.csv',delimiter=' ') points2 = rec.drop_fields(points2,('r','theta')) points2['Number'] += 10000 # to distinguish them from the "randoms" points = np.hstack((points1,points2)) return points
def read_originals(): """Return the originally defined fiber positions, sorted by x and y.""" head, points1 = csv_parse.read("../Baltay-fibers_random.csv", delimiter=" ") head, points2 = csv_parse.read("../Baltay-fibers_residual.csv", delimiter=" ") points2 = recfunc.drop_fields(points2, ("r", "theta")) points2["Number"] += 10000 # to distinguish them from the "randoms" return np.hstack((points1, points2))
def read_positions(): head, points1 = csv_parse.read('../Baltay-fibers_random.csv', delimiter=' ') head, points2 = csv_parse.read('../Baltay-fibers_residual.csv', delimiter=' ') points2 = rec.drop_fields(points2, ('r', 'theta')) points2['Number'] += 10000 # to distinguish them from the "randoms" points = np.hstack((points1, points2)) return points