コード例 #1
0
ファイル: test_convert.py プロジェクト: mickg10/DARLAB
def test_convert_dot():
    # XXX not really clear that the result is valid pdf/eps
    dot = datadir.join("example1.dot")
    convert_dot(dot, "pdf")
    pdf = dot.new(ext="pdf")
    assert pdf.check()
    pdf.remove()
    convert_dot(dot, "eps")
    eps = dot.new(ext="eps")
    assert eps.check()
    eps.remove()
コード例 #2
0
ファイル: test_convert.py プロジェクト: neurobcn/plexnet
def test_convert_dot():
    # XXX not really clear that the result is valid pdf/eps
    dot = datadir.join("example1.dot")
    convert_dot(dot, "pdf")
    pdf = dot.new(ext="pdf")
    assert pdf.check()
    pdf.remove()
    convert_dot(dot, "eps")
    eps = dot.new(ext="eps")
    assert eps.check()
    eps.remove()
コード例 #3
0
ファイル: directive.py プロジェクト: neurobcn/plexnet
 def convert(self, fn, path):
     path = py.path.local(path).dirpath()
     dot = path.join(fn)
     result = convert_dot(dot, backend_to_image_format[_backend])
     return result.relto(path)
コード例 #4
0
ファイル: directive.py プロジェクト: TheDunn/flex-pypy
 def convert(self, fn, path):
     path = py.path.local(path).dirpath()
     dot = path.join(fn)
     result = convert_dot(dot, backend_to_image_format[_backend])
     return result.relto(path)