python 2 compatibility
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python
|
||||||
|
|
||||||
from tabulate import AngleTabulate
|
from tabulate import AngleTabulate
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python
|
||||||
|
|
||||||
from tabulate import BondTabulate
|
from tabulate import BondTabulate
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python
|
||||||
|
|
||||||
from tabulate import DihedralTabulate
|
from tabulate import DihedralTabulate
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python
|
||||||
|
|
||||||
from tabulate import PairTabulate
|
from tabulate import PairTabulate
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
# LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
|
# LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
|
||||||
# https://www.lammps.org/ Sandia National Laboratories
|
# https://www.lammps.org/ Sandia National Laboratories
|
||||||
@ -277,3 +278,7 @@ class DihedralTabulate(Tabulate):
|
|||||||
self.writetable(table, 0.0)
|
self.writetable(table, 0.0)
|
||||||
if self.args.filename != '-':
|
if self.args.filename != '-':
|
||||||
self.fp.close()
|
self.fp.close()
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
if __name__ == "__main__":
|
||||||
|
sys.exit("The tabulate module is not meant to be executed directly")
|
||||||
|
|||||||
Reference in New Issue
Block a user