示例#1
0
文件: bytescan.py 项目: kcsaff/CA
def _bytescan_rectangle(alg, top):
    return chart(
        "bytescan",
        data=_bytescan_data(top.width + 2 * alg.margin, top.height + 2 * alg.margin),
        topology=_scantop.rectangle,
        margin=alg.margin,
    )
示例#2
0
文件: bytescan.py 项目: kcsaff/CA
def _bytescan_projective_plane(alg, top):
    return chart(
        "bytescan",
        data=_bytescan_data(top.width + 2 * alg.margin, top.height + 2 * alg.margin),
        topology=_scantop.projective_plane,
        margin=alg.margin,
    )
示例#3
0
文件: bytescan.py 项目: kcsaff/CA
def _bytescan_torus(alg, top):
    return chart(
        "bytescan",
        data=_bytescan_data(top.width + 2 * alg.margin, top.height + 2 * alg.margin),
        topology=_scantop.torus,
        margin=alg.margin,
    )
示例#4
0
文件: complexscan.py 项目: kcsaff/CA
def _complexscan_projective_plane(alg, top):
    return chart('complexscan',
                 data=_complexscan_data(top.width + 2*alg.margin, 
                                      top.height + 2*alg.margin,
                                      getattr(alg, 'planes', 1)),
                 topology=_scantop.projective_plane,
                 margin=alg.margin
                 )
示例#5
0
文件: complexscan.py 项目: kcsaff/CA
def _complexscan_torusfall(alg, top):
    return chart('complexscan',
                 data=_complexscan_data(top.width + 2*alg.margin, 
                                      top.height + 2*alg.margin,
                                      getattr(alg, 'planes', 1)),
                 topology=_scantop.torusfall(top.fall),
                 margin=alg.margin
                 )
示例#6
0
文件: floatscan.py 项目: kcsaff/CA
def _floatscan_rectangle(alg, top):
    return chart('floatscan',
                 data=_floatscan_data(top.width + 2*alg.margin, 
                                      top.height + 2*alg.margin,
                                      getattr(alg, 'planes', 1)),
                 topology=_scantop.rectangle,
                 margin=alg.margin
                 )
示例#7
0
文件: bytescan.py 项目: kcsaff/CA
def _bytescan_to_projective_plane(c, top):
    return chart("bytescan", data=c.data, topology=_scantop.projective_plane, margin=c.margin)
示例#8
0
文件: bytescan.py 项目: kcsaff/CA
def _bytescan_to_rectangle(c, top):
    return chart("bytescan", data=c.data, topology=_scantop.rectangle, margin=c.margin)
示例#9
0
文件: bytescan.py 项目: kcsaff/CA
def _bytescan_to_torus(c, top):
    return chart("bytescan", data=c.data, topology=_scantop.torus, margin=c.margin)
示例#10
0
文件: complexscan.py 项目: kcsaff/CA
def _complexscan_to_projective_plane(c, top):
    return chart('complexscan',
                 data=c.data,
                 topology=_scantop.projective_plane,
                 margin=c.margin
                 )
示例#11
0
文件: complexscan.py 项目: kcsaff/CA
def _complexscan_to_rectangle(c, top):
    return chart('complexscan',
                 data=c.data,
                 topology=_scantop.rectangle,
                 margin=c.margin
                 )
示例#12
0
文件: complexscan.py 项目: kcsaff/CA
def _complexscan_to_torus(c, top):
    return chart('complexscan',
                 data=c.data,
                 topology=_scantop.torus,
                 margin=c.margin
                 )
示例#13
0
文件: floatscan.py 项目: kcsaff/CA
def _floatscan_to_rectangle(c, top):
    return chart('floatscan',
                 data=c.data,
                 topology=_scantop.rectangle,
                 margin=c.margin
                 )
示例#14
0
文件: floatscan.py 项目: kcsaff/CA
def _floatscan_to_torus(c, top):
    return chart('floatscan',
                 data=c.data,
                 topology=_scantop.torus,
                 margin=c.margin
                 )