Beispiel #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)
Beispiel #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)
Beispiel #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']))
Beispiel #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']))
Beispiel #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']))
Beispiel #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']))
Beispiel #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']))
Beispiel #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']))