tessellate_dumpΒΆ

Pickle RecurrentTessellatedUnitSphere instances.

''' Pickle RecurrentTessellatedUnitSphere instances.
'''

import pickle
from irfpy.util import tessellatedsphere

def dump_tess(ndim=3, filename='tess3.dat'):
    '''Main script'''
    tr = tessellatedsphere.RecurrentTessellatedUnitSphere(ndim)
    tr.createLinkList()
    pickle.dump(tr, open(filename, 'wb'))

def main():
    dump_tess(4, 'tess4.dat')
    dump_tess(5, 'tess5.dat')
    dump_tess(6, 'tess6.dat')
    dump_tess(7, 'tess7.dat')
#    dump_tess(8, 'tess8.dat')
#    dump_tess(9, 'tess9.dat')

if __name__ == "__main__":
    main()