aboutsummaryrefslogtreecommitdiff
path: root/Examples/Tests
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/Tests')
-rwxr-xr-x[-rw-r--r--]Examples/Tests/ElectrostaticDirichletBC/PICMI_inputs_2d.py3
-rwxr-xr-xExamples/Tests/ElectrostaticDirichletBC/analysis.py2
-rwxr-xr-xExamples/Tests/ElectrostaticSphere/analysis_electrostatic_sphere.py2
-rwxr-xr-x[-rw-r--r--]Examples/Tests/ElectrostaticSphereEB/PICMI_inputs_3d.py4
-rwxr-xr-xExamples/Tests/ElectrostaticSphereEB/analysis.py2
-rwxr-xr-x[-rw-r--r--]Examples/Tests/Langmuir/PICMI_inputs_langmuir2d.py2
-rwxr-xr-x[-rw-r--r--]Examples/Tests/Langmuir/PICMI_inputs_langmuir_rt.py2
-rwxr-xr-x[-rw-r--r--]Examples/Tests/Langmuir/PICMI_inputs_langmuir_rz_multimode_analyze.py2
-rwxr-xr-xExamples/Tests/Langmuir/analysis_langmuir_multi.py2
-rwxr-xr-xExamples/Tests/Langmuir/analysis_langmuir_multi_1d.py2
-rwxr-xr-xExamples/Tests/Langmuir/analysis_langmuir_multi_2d.py2
-rwxr-xr-xExamples/Tests/Langmuir/analysis_langmuir_multi_rz.py2
-rwxr-xr-xExamples/Tests/PEC/analysis_pec.py2
-rwxr-xr-xExamples/Tests/PEC/analysis_pec_mr.py2
-rwxr-xr-xExamples/Tests/PML/analysis_pml_ckc.py2
-rwxr-xr-xExamples/Tests/PML/analysis_pml_psatd.py2
-rwxr-xr-xExamples/Tests/PML/analysis_pml_yee.py2
-rwxr-xr-x[-rw-r--r--]Examples/Tests/ParticleDataPython/PICMI_inputs_2d.py2
-rwxr-xr-x[-rw-r--r--]Examples/Tests/ParticleDataPython/PICMI_inputs_prev_pos_2d.py2
-rwxr-xr-xExamples/Tests/ParticleDataPython/analysis.py2
-rwxr-xr-x[-rw-r--r--]Examples/Tests/PythonWrappers/PICMI_inputs_2d.py2
-rwxr-xr-xExamples/Tests/RepellingParticles/analysis_repelling.py2
-rwxr-xr-xExamples/Tests/SilverMueller/analysis_silver_mueller.py2
-rwxr-xr-xExamples/Tests/SingleParticle/analysis_bilinear_filter.py2
-rwxr-xr-xExamples/Tests/boundaries/analysis.py2
-rwxr-xr-xExamples/Tests/collision/analysis_collision_2d.py2
-rwxr-xr-xExamples/Tests/collision/analysis_collision_3d.py2
-rwxr-xr-xExamples/Tests/collision/analysis_collision_rz.py2
-rwxr-xr-xExamples/Tests/divb_cleaning/analysis.py2
-rwxr-xr-xExamples/Tests/embedded_circle/analysis.py2
-rwxr-xr-xExamples/Tests/galilean/analysis_2d.py2
-rwxr-xr-xExamples/Tests/galilean/analysis_3d.py2
-rwxr-xr-xExamples/Tests/initial_distribution/analysis_distribution.py2
-rwxr-xr-xExamples/Tests/initial_plasma_profile/analysis.py2
-rwxr-xr-xExamples/Tests/particle_pusher/analysis_pusher.py2
-rwxr-xr-xExamples/Tests/particles_in_PML/analysis_particles_in_pml.py2
-rwxr-xr-x[-rw-r--r--]Examples/Tests/pass_mpi_communicator/PICMI_inputs_2d.py2
-rwxr-xr-xExamples/Tests/pass_mpi_communicator/analysis.py2
-rwxr-xr-xExamples/Tests/photon_pusher/analysis_photon_pusher.py2
-rwxr-xr-xExamples/Tests/plasma_lens/analysis.py2
-rwxr-xr-xExamples/Tests/radiation_reaction/test_const_B_analytical/analysis_classicalRR.py2
-rwxr-xr-xExamples/Tests/reduced_diags/analysis_reduced_diags.py2
-rwxr-xr-xExamples/Tests/reduced_diags/analysis_reduced_diags_impl.py2
-rwxr-xr-xExamples/Tests/reduced_diags/analysis_reduced_diags_loadbalancecosts.py2
-rwxr-xr-xExamples/Tests/reduced_diags/analysis_reduced_diags_single.py2
-rwxr-xr-x[-rw-r--r--]Examples/Tests/restart/PICMI_inputs_runtime_component_analyze.py2
-rwxr-xr-xExamples/Tests/restart/analysis_restart.py2
47 files changed, 60 insertions, 37 deletions
diff --git a/Examples/Tests/ElectrostaticDirichletBC/PICMI_inputs_2d.py b/Examples/Tests/ElectrostaticDirichletBC/PICMI_inputs_2d.py
index 039b2be35..21c4c49c9 100644..100755
--- a/Examples/Tests/ElectrostaticDirichletBC/PICMI_inputs_2d.py
+++ b/Examples/Tests/ElectrostaticDirichletBC/PICMI_inputs_2d.py
@@ -1,5 +1,8 @@
+#!/usr/bin/env python3
+
from pywarpx import picmi
+
##########################
# physics parameters
##########################
diff --git a/Examples/Tests/ElectrostaticDirichletBC/analysis.py b/Examples/Tests/ElectrostaticDirichletBC/analysis.py
index 3ea791ef5..6dd231e89 100755
--- a/Examples/Tests/ElectrostaticDirichletBC/analysis.py
+++ b/Examples/Tests/ElectrostaticDirichletBC/analysis.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2021 Roelof Groenewald
diff --git a/Examples/Tests/ElectrostaticSphere/analysis_electrostatic_sphere.py b/Examples/Tests/ElectrostaticSphere/analysis_electrostatic_sphere.py
index c74f92690..9bb3ff5f5 100755
--- a/Examples/Tests/ElectrostaticSphere/analysis_electrostatic_sphere.py
+++ b/Examples/Tests/ElectrostaticSphere/analysis_electrostatic_sphere.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
#
# Copyright 2019-2021 David Bizzozero, David Grote
#
diff --git a/Examples/Tests/ElectrostaticSphereEB/PICMI_inputs_3d.py b/Examples/Tests/ElectrostaticSphereEB/PICMI_inputs_3d.py
index 60c9285ec..e95365425 100644..100755
--- a/Examples/Tests/ElectrostaticSphereEB/PICMI_inputs_3d.py
+++ b/Examples/Tests/ElectrostaticSphereEB/PICMI_inputs_3d.py
@@ -1,5 +1,8 @@
+#!/usr/bin/env python3
+
from pywarpx import picmi
+
##########################
# physics parameters
##########################
@@ -7,6 +10,7 @@ from pywarpx import picmi
V_domain_boundary = 0.0
V_embedded_boundary = 1.0
+
##########################
# numerics parameters
##########################
diff --git a/Examples/Tests/ElectrostaticSphereEB/analysis.py b/Examples/Tests/ElectrostaticSphereEB/analysis.py
index 789fe8d93..79a414237 100755
--- a/Examples/Tests/ElectrostaticSphereEB/analysis.py
+++ b/Examples/Tests/ElectrostaticSphereEB/analysis.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# Run the default regression test for the PICMI version of the EB test
# using the same reference file as for the non-PICMI test since the two
diff --git a/Examples/Tests/Langmuir/PICMI_inputs_langmuir2d.py b/Examples/Tests/Langmuir/PICMI_inputs_langmuir2d.py
index 1dc19572d..4b9c3ac30 100644..100755
--- a/Examples/Tests/Langmuir/PICMI_inputs_langmuir2d.py
+++ b/Examples/Tests/Langmuir/PICMI_inputs_langmuir2d.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+#
# --- Simple example of Langmuir oscillations in a uniform plasma
# --- in two dimensions
diff --git a/Examples/Tests/Langmuir/PICMI_inputs_langmuir_rt.py b/Examples/Tests/Langmuir/PICMI_inputs_langmuir_rt.py
index e39d60006..180180f5f 100644..100755
--- a/Examples/Tests/Langmuir/PICMI_inputs_langmuir_rt.py
+++ b/Examples/Tests/Langmuir/PICMI_inputs_langmuir_rt.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+#
# --- Simple example of Langmuir oscillations in a uniform plasma
from pywarpx import picmi
diff --git a/Examples/Tests/Langmuir/PICMI_inputs_langmuir_rz_multimode_analyze.py b/Examples/Tests/Langmuir/PICMI_inputs_langmuir_rz_multimode_analyze.py
index 22ab1679b..736cf3b5b 100644..100755
--- a/Examples/Tests/Langmuir/PICMI_inputs_langmuir_rz_multimode_analyze.py
+++ b/Examples/Tests/Langmuir/PICMI_inputs_langmuir_rz_multimode_analyze.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+#
# This is a script that analyses the multimode simulation results.
# This simulates a RZ multimode periodic plasma wave.
# The electric field from the simulation is compared to the analytic value
diff --git a/Examples/Tests/Langmuir/analysis_langmuir_multi.py b/Examples/Tests/Langmuir/analysis_langmuir_multi.py
index 436d15e4f..7ca6a4301 100755
--- a/Examples/Tests/Langmuir/analysis_langmuir_multi.py
+++ b/Examples/Tests/Langmuir/analysis_langmuir_multi.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2019 Jean-Luc Vay, Maxence Thevenet, Remi Lehe
#
diff --git a/Examples/Tests/Langmuir/analysis_langmuir_multi_1d.py b/Examples/Tests/Langmuir/analysis_langmuir_multi_1d.py
index 5cb52de23..5fb03e459 100755
--- a/Examples/Tests/Langmuir/analysis_langmuir_multi_1d.py
+++ b/Examples/Tests/Langmuir/analysis_langmuir_multi_1d.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2019-2021 Jean-Luc Vay, Maxence Thevenet, Remi Lehe, Prabhat Kumar
#
diff --git a/Examples/Tests/Langmuir/analysis_langmuir_multi_2d.py b/Examples/Tests/Langmuir/analysis_langmuir_multi_2d.py
index 8bfd972cc..debf2b7ba 100755
--- a/Examples/Tests/Langmuir/analysis_langmuir_multi_2d.py
+++ b/Examples/Tests/Langmuir/analysis_langmuir_multi_2d.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2019 Jean-Luc Vay, Maxence Thevenet, Remi Lehe
#
diff --git a/Examples/Tests/Langmuir/analysis_langmuir_multi_rz.py b/Examples/Tests/Langmuir/analysis_langmuir_multi_rz.py
index b0425a382..a3cdeb12b 100755
--- a/Examples/Tests/Langmuir/analysis_langmuir_multi_rz.py
+++ b/Examples/Tests/Langmuir/analysis_langmuir_multi_rz.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2019 David Grote, Maxence Thevenet
#
diff --git a/Examples/Tests/PEC/analysis_pec.py b/Examples/Tests/PEC/analysis_pec.py
index 3918187d5..a0449e463 100755
--- a/Examples/Tests/PEC/analysis_pec.py
+++ b/Examples/Tests/PEC/analysis_pec.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
#
#
diff --git a/Examples/Tests/PEC/analysis_pec_mr.py b/Examples/Tests/PEC/analysis_pec_mr.py
index ce6585193..1ab3e8332 100755
--- a/Examples/Tests/PEC/analysis_pec_mr.py
+++ b/Examples/Tests/PEC/analysis_pec_mr.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
#
#
diff --git a/Examples/Tests/PML/analysis_pml_ckc.py b/Examples/Tests/PML/analysis_pml_ckc.py
index 602364570..6b32dce1b 100755
--- a/Examples/Tests/PML/analysis_pml_ckc.py
+++ b/Examples/Tests/PML/analysis_pml_ckc.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2018-2019 Andrew Myers, Jean-Luc Vay, Maxence Thevenet
# Remi Lehe
diff --git a/Examples/Tests/PML/analysis_pml_psatd.py b/Examples/Tests/PML/analysis_pml_psatd.py
index ea0cb018e..9cb830524 100755
--- a/Examples/Tests/PML/analysis_pml_psatd.py
+++ b/Examples/Tests/PML/analysis_pml_psatd.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2019 Jean-Luc Vay, Maxence Thevenet, Remi Lehe
#
diff --git a/Examples/Tests/PML/analysis_pml_yee.py b/Examples/Tests/PML/analysis_pml_yee.py
index 603da1888..513bf210d 100755
--- a/Examples/Tests/PML/analysis_pml_yee.py
+++ b/Examples/Tests/PML/analysis_pml_yee.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2018-2019 Andrew Myers, Jean-Luc Vay, Maxence Thevenet
# Remi Lehe
diff --git a/Examples/Tests/ParticleDataPython/PICMI_inputs_2d.py b/Examples/Tests/ParticleDataPython/PICMI_inputs_2d.py
index 20a49eca7..6ed144dbc 100644..100755
--- a/Examples/Tests/ParticleDataPython/PICMI_inputs_2d.py
+++ b/Examples/Tests/ParticleDataPython/PICMI_inputs_2d.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
from pywarpx import picmi
import numpy as np
diff --git a/Examples/Tests/ParticleDataPython/PICMI_inputs_prev_pos_2d.py b/Examples/Tests/ParticleDataPython/PICMI_inputs_prev_pos_2d.py
index c25b522af..d8e37140f 100644..100755
--- a/Examples/Tests/ParticleDataPython/PICMI_inputs_prev_pos_2d.py
+++ b/Examples/Tests/ParticleDataPython/PICMI_inputs_prev_pos_2d.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+#
# --- Input file to test the saving of old particle positions
import numpy as np
diff --git a/Examples/Tests/ParticleDataPython/analysis.py b/Examples/Tests/ParticleDataPython/analysis.py
index e6fb64576..0b0cce329 100755
--- a/Examples/Tests/ParticleDataPython/analysis.py
+++ b/Examples/Tests/ParticleDataPython/analysis.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2021 Modern Electron
#
diff --git a/Examples/Tests/PythonWrappers/PICMI_inputs_2d.py b/Examples/Tests/PythonWrappers/PICMI_inputs_2d.py
index f72ffe71d..8e4648554 100644..100755
--- a/Examples/Tests/PythonWrappers/PICMI_inputs_2d.py
+++ b/Examples/Tests/PythonWrappers/PICMI_inputs_2d.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1.axes_divider import make_axes_locatable
diff --git a/Examples/Tests/RepellingParticles/analysis_repelling.py b/Examples/Tests/RepellingParticles/analysis_repelling.py
index 25f1fe977..5f618c023 100755
--- a/Examples/Tests/RepellingParticles/analysis_repelling.py
+++ b/Examples/Tests/RepellingParticles/analysis_repelling.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
#
# Copyright 2021 Remi Lehe
#
diff --git a/Examples/Tests/SilverMueller/analysis_silver_mueller.py b/Examples/Tests/SilverMueller/analysis_silver_mueller.py
index 9ec7c56e8..6f2b4aaf1 100755
--- a/Examples/Tests/SilverMueller/analysis_silver_mueller.py
+++ b/Examples/Tests/SilverMueller/analysis_silver_mueller.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2021
#
diff --git a/Examples/Tests/SingleParticle/analysis_bilinear_filter.py b/Examples/Tests/SingleParticle/analysis_bilinear_filter.py
index e9b9dd832..d7515f31c 100755
--- a/Examples/Tests/SingleParticle/analysis_bilinear_filter.py
+++ b/Examples/Tests/SingleParticle/analysis_bilinear_filter.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2019 Maxence Thevenet
#
diff --git a/Examples/Tests/boundaries/analysis.py b/Examples/Tests/boundaries/analysis.py
index e269bfcf1..76eea32a2 100755
--- a/Examples/Tests/boundaries/analysis.py
+++ b/Examples/Tests/boundaries/analysis.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2021 David Grote
#
diff --git a/Examples/Tests/collision/analysis_collision_2d.py b/Examples/Tests/collision/analysis_collision_2d.py
index 6c21c362b..ee115722e 100755
--- a/Examples/Tests/collision/analysis_collision_2d.py
+++ b/Examples/Tests/collision/analysis_collision_2d.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2019-2020 Yinjian Zhao
#
diff --git a/Examples/Tests/collision/analysis_collision_3d.py b/Examples/Tests/collision/analysis_collision_3d.py
index 17923c887..0b469f584 100755
--- a/Examples/Tests/collision/analysis_collision_3d.py
+++ b/Examples/Tests/collision/analysis_collision_3d.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2019-2020 Yinjian Zhao
#
diff --git a/Examples/Tests/collision/analysis_collision_rz.py b/Examples/Tests/collision/analysis_collision_rz.py
index 82b2e6da7..72f57eb09 100755
--- a/Examples/Tests/collision/analysis_collision_rz.py
+++ b/Examples/Tests/collision/analysis_collision_rz.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2019-2021 Yinjian Zhao
#
diff --git a/Examples/Tests/divb_cleaning/analysis.py b/Examples/Tests/divb_cleaning/analysis.py
index f70dc58a1..571b63a7d 100755
--- a/Examples/Tests/divb_cleaning/analysis.py
+++ b/Examples/Tests/divb_cleaning/analysis.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2019
#
diff --git a/Examples/Tests/embedded_circle/analysis.py b/Examples/Tests/embedded_circle/analysis.py
index 257d36afc..28391ebe2 100755
--- a/Examples/Tests/embedded_circle/analysis.py
+++ b/Examples/Tests/embedded_circle/analysis.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
import os
import sys
diff --git a/Examples/Tests/galilean/analysis_2d.py b/Examples/Tests/galilean/analysis_2d.py
index 3528a6292..33a4fdec6 100755
--- a/Examples/Tests/galilean/analysis_2d.py
+++ b/Examples/Tests/galilean/analysis_2d.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
"""
This script is used to test the results of the Galilean PSATD method and
averaged Galilean PSATD method in WarpX.
diff --git a/Examples/Tests/galilean/analysis_3d.py b/Examples/Tests/galilean/analysis_3d.py
index 6e7a014b0..cd2dadf0b 100755
--- a/Examples/Tests/galilean/analysis_3d.py
+++ b/Examples/Tests/galilean/analysis_3d.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
"""
This script is used to test the results of the Galilean PSATD method and
averaged Galilean PSATD method in WarpX.
diff --git a/Examples/Tests/initial_distribution/analysis_distribution.py b/Examples/Tests/initial_distribution/analysis_distribution.py
index d43ced2bb..4efe4e396 100755
--- a/Examples/Tests/initial_distribution/analysis_distribution.py
+++ b/Examples/Tests/initial_distribution/analysis_distribution.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2019-2020 Yinjian Zhao
#
diff --git a/Examples/Tests/initial_plasma_profile/analysis.py b/Examples/Tests/initial_plasma_profile/analysis.py
index 3ba67f9f5..b90c60a5e 100755
--- a/Examples/Tests/initial_plasma_profile/analysis.py
+++ b/Examples/Tests/initial_plasma_profile/analysis.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2020 Michael Rowan
#
diff --git a/Examples/Tests/particle_pusher/analysis_pusher.py b/Examples/Tests/particle_pusher/analysis_pusher.py
index 6a6bc7d1e..d6bd92184 100755
--- a/Examples/Tests/particle_pusher/analysis_pusher.py
+++ b/Examples/Tests/particle_pusher/analysis_pusher.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2019 Yinjian Zhao
#
diff --git a/Examples/Tests/particles_in_PML/analysis_particles_in_pml.py b/Examples/Tests/particles_in_PML/analysis_particles_in_pml.py
index 4caefb6e7..cfee8e389 100755
--- a/Examples/Tests/particles_in_PML/analysis_particles_in_pml.py
+++ b/Examples/Tests/particles_in_PML/analysis_particles_in_pml.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2019-2020 Luca Fedeli, Maxence Thevenet, Remi Lehe
#
diff --git a/Examples/Tests/pass_mpi_communicator/PICMI_inputs_2d.py b/Examples/Tests/pass_mpi_communicator/PICMI_inputs_2d.py
index 8eb5839c3..0d87699c5 100644..100755
--- a/Examples/Tests/pass_mpi_communicator/PICMI_inputs_2d.py
+++ b/Examples/Tests/pass_mpi_communicator/PICMI_inputs_2d.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+#
# --- Test if MPI_communicator is correctly passed from Python to CPP
# --- This test should be run with MPI enabled
# --- Inputs taken from langmuir_2d. Runs 10 steps, and will check
diff --git a/Examples/Tests/pass_mpi_communicator/analysis.py b/Examples/Tests/pass_mpi_communicator/analysis.py
index 3c2405bcb..9c1be3e51 100755
--- a/Examples/Tests/pass_mpi_communicator/analysis.py
+++ b/Examples/Tests/pass_mpi_communicator/analysis.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# This is a script that analyses the simulation results from
# the script `PICMI_inputs_2d`.
diff --git a/Examples/Tests/photon_pusher/analysis_photon_pusher.py b/Examples/Tests/photon_pusher/analysis_photon_pusher.py
index 83dfb0c6a..181e60751 100755
--- a/Examples/Tests/photon_pusher/analysis_photon_pusher.py
+++ b/Examples/Tests/photon_pusher/analysis_photon_pusher.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2019 Luca Fedeli, Maxence Thevenet, Weiqun Zhang
#
diff --git a/Examples/Tests/plasma_lens/analysis.py b/Examples/Tests/plasma_lens/analysis.py
index b9001222a..094870eaf 100755
--- a/Examples/Tests/plasma_lens/analysis.py
+++ b/Examples/Tests/plasma_lens/analysis.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2021 David Grote
#
diff --git a/Examples/Tests/radiation_reaction/test_const_B_analytical/analysis_classicalRR.py b/Examples/Tests/radiation_reaction/test_const_B_analytical/analysis_classicalRR.py
index a09654b53..9f0d10845 100755
--- a/Examples/Tests/radiation_reaction/test_const_B_analytical/analysis_classicalRR.py
+++ b/Examples/Tests/radiation_reaction/test_const_B_analytical/analysis_classicalRR.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2019 Luca Fedeli, Maxence Thevenet, Remi Lehe
#
diff --git a/Examples/Tests/reduced_diags/analysis_reduced_diags.py b/Examples/Tests/reduced_diags/analysis_reduced_diags.py
index bf2d5f2d3..188580037 100755
--- a/Examples/Tests/reduced_diags/analysis_reduced_diags.py
+++ b/Examples/Tests/reduced_diags/analysis_reduced_diags.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2019-2021 Luca Fedeli, Yinjian Zhao
#
diff --git a/Examples/Tests/reduced_diags/analysis_reduced_diags_impl.py b/Examples/Tests/reduced_diags/analysis_reduced_diags_impl.py
index acce97d32..4e42bf684 100755
--- a/Examples/Tests/reduced_diags/analysis_reduced_diags_impl.py
+++ b/Examples/Tests/reduced_diags/analysis_reduced_diags_impl.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2019-2021 Luca Fedeli, Yinjian Zhao
#
diff --git a/Examples/Tests/reduced_diags/analysis_reduced_diags_loadbalancecosts.py b/Examples/Tests/reduced_diags/analysis_reduced_diags_loadbalancecosts.py
index edeac2ec8..14473f900 100755
--- a/Examples/Tests/reduced_diags/analysis_reduced_diags_loadbalancecosts.py
+++ b/Examples/Tests/reduced_diags/analysis_reduced_diags_loadbalancecosts.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2019-2020 Michael Rowan
#
diff --git a/Examples/Tests/reduced_diags/analysis_reduced_diags_single.py b/Examples/Tests/reduced_diags/analysis_reduced_diags_single.py
index 148a54ceb..0bd83854c 100755
--- a/Examples/Tests/reduced_diags/analysis_reduced_diags_single.py
+++ b/Examples/Tests/reduced_diags/analysis_reduced_diags_single.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2019-2021 Luca Fedeli, Yinjian Zhao
#
diff --git a/Examples/Tests/restart/PICMI_inputs_runtime_component_analyze.py b/Examples/Tests/restart/PICMI_inputs_runtime_component_analyze.py
index a0402fec8..524913335 100644..100755
--- a/Examples/Tests/restart/PICMI_inputs_runtime_component_analyze.py
+++ b/Examples/Tests/restart/PICMI_inputs_runtime_component_analyze.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+#
# This is a script that adds particle components at runtime,
# then performs checkpoint / restart and compares the result
# to the original simulation.
diff --git a/Examples/Tests/restart/analysis_restart.py b/Examples/Tests/restart/analysis_restart.py
index 9ef964664..087e380c4 100755
--- a/Examples/Tests/restart/analysis_restart.py
+++ b/Examples/Tests/restart/analysis_restart.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
import sys
sys.path.insert(1, '../../../../warpx/Regression/Checksum/')