Skip to content

Commit

Permalink
users are no longer required to use "python" instead of "python3" whe…
Browse files Browse the repository at this point in the history
…n trying to run .py executable files directly from the shell
  • Loading branch information
jewettaij committed Dec 4, 2022
1 parent eed6a30 commit 8aca01e
Show file tree
Hide file tree
Showing 58 changed files with 58 additions and 58 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import sys, math

g_filename = __file__.split('/')[-1]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3


err_msg = """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3


err_msg = """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import sys, math

g_filename = __file__.split('/')[-1]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3


err_msg = """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3


err_msg = """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

err_msg = """
Usage:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3


err_msg = """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# We keep track of the program name and version.
# (This is only used for generating error messages.)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# We keep track of the program name and version.
# (This is only used for generating error messages.)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Calculate a table of pairwise energies and forces between "INT" atoms
# in the lipid membrane model described in
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Calculate a table of pairwise energies and forces between "INT" atoms
# in the lipid membrane model described in
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Calculate a table of pairwise energies and forces between "INT" atoms
# in the lipid membrane model described in
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Calculate a table of pairwise energies and forces between "INT" atoms
# in the lipid membrane model described in
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Calculate a table of pairwise energies and forces between "INT" atoms
# in the lipid membrane model described in
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Calculate a table of pairwise energies and forces between "INT" atoms
# in the lipid membrane model described in
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Calculate a table of pairwise energies and forces between atoms in the
# protein and a chaperone provided in the supplemental materials section of:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Calculate a table of dihedral angle interactions used in the alpha-helix
# and beta-sheet regions of the frustrated protein model described in
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Calculate a table of pairwise energies and forces between atoms in the
# protein and a chaperone provided in the supplemental materials section of:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Calculate a table of dihedral angle interactions used in the alpha-helix
# and beta-sheet regions of the frustrated protein model described in
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Calculate a table of dihedral angle interactions used in the alpha-helix
# and beta-sheet regions of the frustrated protein model described in
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Calculate a table of pairwise energies and forces between atoms in the
# protein and a chaperone provided in the supplemental materials section of:
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/amber2lt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Author: Andrew Jewett
# License: MIT License (See LICENSE.md)
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/bonds_by_type.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Author: Andrew Jewett (jewett.aij at g mail)
# License: MIT License (See LICENSE.md)
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/charge_by_bond.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Author: Andrew Jewett (jewett.aij at g mail)
# License: MIT License (See LICENSE.md)
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/depreciated/oplsaa_moltemplate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3
#
# Author: Jason Lambert
# (some additional corrections by Miguel Gonzalez, Yue Chun Chiu and others)
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/dump2data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

# Author: Andrew Jewett
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/ettree.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Author: Andrew Jewett (jewett.aij at g mail)
# License: MIT License (See LICENSE.md)
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/extract_espresso_atom_types.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Author: Andrew Jewett (jewett.aij at g mail)
# License: MIT License (See LICENSE.md)
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/extract_lammps_data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Author: Andrew Jewett (jewett.aij at g mail)
# License: MIT License (See LICENSE.md)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Author: David Stelter, Andrew Jewett
# License: MIT License (See LICENSE.md)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3
# Author: Andrew Jewett (jewett.aij at g mail)
# Copyright (c) 2017, California Institute of Technology
# All rights reserved.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3

# Author: Jason Lambert, Andrew Jewett (jewett.aij at g mail)
# (some additional corrections by Miguel Gonzalez, Yue Chun Chiu and others)
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/genpoly_lt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Author: Andrew Jewett (jewett.aij at g mail)
# License: MIT License (See LICENSE.md)
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/genpoly_modify_lt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

g_program_name = __file__.split('/')[-1]
g_version_str = '0.3.8'
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/interpolate_curve.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Author: Andrew Jewett (jewett.aij at g mail)
# License: MIT License (See LICENSE.md)
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/ltemplify.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

# Author: Andrew Jewett (jewett.aij at g mail)
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/lttree.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Author: Andrew Jewett (jewett.aij at g mail)
# http://www.moltemplate.org
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/lttree_check.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Author: Andrew Jewett (jewett.aij at g mail)
# License: MIT License (See LICENSE.md)
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/lttree_postprocess.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Author: Andrew Jewett (jewett.aij at g mail)
# License: MIT License (See LICENSE.md)
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/lttree_styles.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

# Author: Andrew Jewett (jewett.aij at g mail)
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/mol22lt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Author: Andrew Jewett
# License: MIT License (See LICENSE.md)
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/nbody_by_type.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Author: Andrew Jewett (jewett.aij at g mail)
# http://www.chem.ucsb.edu/~sheagroup
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/nbody_by_type_lib.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Author: Andrew Jewett (jewett.aij at g mail)
# http://www.chem.ucsb.edu/~sheagroup
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/nbody_fix_ttree_assignments.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Author: Andrew Jewett (jewett.aij at g mail)
# License: MIT License (See LICENSE.md)
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/nbody_reorder_atoms.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Author: Andrew Jewett (jewett.aij at g mail)
# License: MIT License (See LICENSE.md)
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/pdbsort.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Author: Andrew Jewett (jewett.aij at g mail)
# License: MIT License (See LICENSE.md)
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/postprocess_coeffs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Author: Andrew Jewett (jewett.aij at g mail)
# License: MIT License (See LICENSE.md)
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/postprocess_input_script.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Author: Andrew Jewett (jewett.aij at g mail)
# License: MIT License (See LICENSE.md)
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/postprocess_transitions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Author: Andrew Jewett (jewett.aij at g mail)
# License: MIT License (See LICENSE.md)
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/raw2data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

# Author: Andrew Jewett
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/recenter_coords.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Author: Andrew Jewett (jewett.aij at g mail)
# License: MIT License (See LICENSE.md)
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/remove_duplicate_atoms.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Author: Andrew Jewett (jewett.aij at g mail)
# License: MIT License (See LICENSE.md)
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/remove_duplicates_nbody.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Author: Andrew Jewett (jewett.aij at g mail)
# License: MIT License (See LICENSE.md)
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/renumber_DATA_first_column.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Author: Andrew Jewett (jewett.aij at g mail)
# License: MIT License (See LICENSE.md)
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/ttree.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Author: Andrew Jewett (jewett.aij at g mail)
# http://www.moltemplate.org
Expand Down
2 changes: 1 addition & 1 deletion moltemplate/ttree_render.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Author: Andrew Jewett ([email protected])
# License: MIT License (See LICENSE.md)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_genpoly_lt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import math
import numpy as np
Expand Down

0 comments on commit 8aca01e

Please sign in to comment.