Beispiel #1
0
def test_hsp_io():
    """Test reading and writing hsp files"""
    pts = read_hsp(hsp_path)
    temp_fname = op.join(tempdir, 'temp_hsp.txt')
    write_hsp(temp_fname, pts)
    pts2 = read_hsp(temp_fname)
    assert_array_equal(pts, pts2, "Hsp points diverged after writing and "
                       "reading.")
Beispiel #2
0
def test_hsp_io():
    """Test reading and writing hsp files"""
    pts = read_hsp(hsp_path)
    temp_fname = op.join(tempdir, 'temp_hsp.txt')
    write_hsp(temp_fname, pts)
    pts2 = read_hsp(temp_fname)
    assert_array_equal(pts, pts2, "Hsp points diverged after writing and "
                       "reading.")
Beispiel #3
0
def test_io_hsp():
    """Test IO for hsp files"""
    pts = read_hsp(hsp_fname)

    dest = os.path.join(tempdir, 'test.txt')
    write_hsp(dest, pts)
    pts1 = read_hsp(dest)

    assert_array_equal(pts, pts1)
Beispiel #4
0
def test_io_hsp():
    """Test IO for hsp files"""
    pts = read_hsp(hsp_fname)

    dest = os.path.join(tempdir, 'test.txt')
    write_hsp(dest, pts)
    pts1 = read_hsp(dest)
    assert_array_equal(pts, pts1, "Hsp points diverged after writing and "
                       "reading.")
Beispiel #5
0
def test_io_hsp():
    """Test IO for hsp files"""
    pts = read_hsp(hsp_fname)

    dest = os.path.join(tempdir, 'test.txt')
    write_hsp(dest, pts)
    pts1 = read_hsp(dest)
    assert_array_equal(pts, pts1, "Hsp points diverged after writing and "
                       "reading.")