예제 #1
0
파일: test_write.py 프로젝트: dagrha/lasio
def test_write_sect_widths_12_curves():
    l = read(egfn("sample_write_sect_widths_12.las"))
    s = StringIO()
    l.write(s, version=1.2)
    for start in ("D.M ", "A.US/M ", "B.K/M3 ", "C.V/V "):
        s.seek(0)
        assert "\n" + start in s.read()
예제 #2
0
def test_write_wrapped():
    fn = stegfn("1.2", "sample_wrapped.las")
    l = read(fn)
    s = StringIO()
    l.write(s, version=2.0, wrap=True, fmt="%.5f")
    s.seek(0)
    assert s.read() == """~Version ---------------------------------------------------
예제 #3
0
파일: test_write.py 프로젝트: dagrha/lasio
def test_write_sect_widths_20_narrow():
    l = read(egfn("sample_write_sect_widths_20_narrow.las"))
    s = StringIO()
    l.write(s, version=2)
    s.seek(0)
    assert s.read() == """~Version ---------------------------------------------------