See the documentation of treams.lattice.realsumcw1d().
treams.lattice.realsumcw1d()
treams.lattice.cython_lattice.nedge
treams.lattice.cython_lattice.realsumsw1d