Пример #1
0
def test2():
    mwnt = MWNT(max_walls=5)
    print(mwnt)
    print(mwnt.todict())
    print(mwnt.chiral_types)
    print(mwnt.chiral_set)
    assert_equal(mwnt.Ntubes, 1)
    assert_equal(mwnt.Nwalls, 5)
Пример #2
0
def test2():
    mwnt = MWNT(max_walls=5)
    print(mwnt)
    print(mwnt.todict())
    print(mwnt.chiral_types)
    print(mwnt.chiral_set)
    assert_equal(mwnt.Ntubes, 1)
    assert_equal(mwnt.Nwalls, 5)
Пример #3
0
def test1():
    mwnt = MWNT(Ch=[(5,5),(10,10)])
    print(mwnt)
    print(mwnt.todict())
    print(mwnt.chiral_types)
    print(mwnt.chiral_set)
    assert_equal(mwnt.Ntubes, 1)
    assert_equal(mwnt.Nwalls, 2)
    assert_equal(mwnt.chiral_set, set(['armchair']))
Пример #4
0
def test3():
    mwnt = MWNT(Ch=[(5, 5), (10, 10), (15, 15), (20, 20)], Lz=2.5)
    print(mwnt)
    print(mwnt.todict())
    print(mwnt.chiral_types)
    print(mwnt.chiral_set)
    assert_equal(mwnt.Ntubes, 1)
    assert_equal(mwnt.Nwalls, 4)
    assert_equal(mwnt.chiral_set, set(['armchair']))
Пример #5
0
def test1():
    mwnt = MWNT(Ch=[(5, 5), (10, 10)])
    print(mwnt)
    print(mwnt.todict())
    print(mwnt.chiral_types)
    print(mwnt.chiral_set)
    assert_equal(mwnt.Ntubes, 1)
    assert_equal(mwnt.Nwalls, 2)
    assert_equal(mwnt.chiral_set, set(['armchair']))
Пример #6
0
def test3():
    mwnt = MWNT(Ch=[(5, 5), (10, 10), (15, 15), (20, 20)], Lz=2.5)
    print(mwnt)
    print(mwnt.todict())
    print(mwnt.chiral_types)
    print(mwnt.chiral_set)
    assert_equal(mwnt.Ntubes, 1)
    assert_equal(mwnt.Nwalls, 4)
    assert_equal(mwnt.chiral_set, set(['armchair']))
Пример #7
0
def test4():
    mwnt = MWNT(Ch=[(5, 0), (5, 5), (10, 5), (10, 0), (10, 10), (20, 10)],
                Lz=1.0)
    print(mwnt)
    print(mwnt.todict())
    print(mwnt.chiral_types)
    print(mwnt.chiral_set)
    assert_equal(mwnt.Ntubes, 1)
    assert_equal(mwnt.Nwalls, 6)
    assert_equal(mwnt.chiral_set, set(['armchair', 'chiral', 'zigzag']))
Пример #8
0
def test4():
    mwnt = MWNT(Ch=[(5, 0), (5, 5), (10, 5), (10, 0), (10, 10), (20, 10)],
                Lz=1.0)
    print(mwnt)
    print(mwnt.todict())
    print(mwnt.chiral_types)
    print(mwnt.chiral_set)
    assert_equal(mwnt.Ntubes, 1)
    assert_equal(mwnt.Nwalls, 6)
    assert_equal(mwnt.chiral_set, set(['armchair', 'chiral', 'zigzag']))