Can we build a naotube by Pymatgen?

Hi all, can we build a nanotube from a 2D monolayer material by Pymatgen? I need to build a bunch of nanotubes automatically.

Not directly, but you can convert the pymatgen structure to an ASE atoms object (using pymatgen.io.AseAtomsAdaptor), and use ASE’s nanotube builder.

Thank you so much, Aaron! I will try it.