python 2 compatibility

This commit is contained in:
Axel Kohlmeyer
2022-12-19 12:13:40 -05:00
parent bc8812c391
commit 18d07883c3
5 changed files with 9 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
from tabulate import AngleTabulate

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
from tabulate import BondTabulate

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
from tabulate import DihedralTabulate

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
from tabulate import PairTabulate

View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
# ----------------------------------------------------------------------
# LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
# https://www.lammps.org/ Sandia National Laboratories
@ -277,3 +278,7 @@ class DihedralTabulate(Tabulate):
self.writetable(table, 0.0)
if self.args.filename != '-':
self.fp.close()
################################################################################
if __name__ == "__main__":
sys.exit("The tabulate module is not meant to be executed directly")