WIP: read_segment

test produced error: (shapes (193, 1002), (193, 1000) mismatch)