aboutsummaryrefslogtreecommitdiff
path: root/Examples/Modules/embedded_boundary_python_API
diff options
context:
space:
mode:
authorGravatar Axel Huebl <axel.huebl@plasma.ninja> 2021-12-15 11:17:55 -0800
committerGravatar GitHub <noreply@github.com> 2021-12-15 11:17:55 -0800
commitfc8a2ae271bb3ddd3cff3da42dff990547a7bfa1 (patch)
tree77e1ce29fc1253b5bf7669a56e0c177f0a3550b5 /Examples/Modules/embedded_boundary_python_API
parent603f75d295f5d87baf3284807319e027a4b93a1c (diff)
downloadWarpX-fc8a2ae271bb3ddd3cff3da42dff990547a7bfa1.tar.gz
WarpX-fc8a2ae271bb3ddd3cff3da42dff990547a7bfa1.tar.zst
WarpX-fc8a2ae271bb3ddd3cff3da42dff990547a7bfa1.zip
Examples: Python ShellBang & Executable (#2673)
* Examples: Python ShellBang & Executable Make sure that all PICMI scripts and all analysis Python scripts in `Examples/` are: - executable (`chmod a+x`) - start with a shell-bang to `python3` Now, all scripts can be run directly without a `python3 ...` prefix and also default to the only right executable of Python on older systems. (New systems always have a `python3` alias, too.) * Revert a moved numpy
Diffstat (limited to 'Examples/Modules/embedded_boundary_python_API')
-rwxr-xr-x[-rw-r--r--]Examples/Modules/embedded_boundary_python_API/PICMI_inputs_EB_API.py2
-rwxr-xr-xExamples/Modules/embedded_boundary_python_API/analysis.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/Examples/Modules/embedded_boundary_python_API/PICMI_inputs_EB_API.py b/Examples/Modules/embedded_boundary_python_API/PICMI_inputs_EB_API.py
index bc56968d2..e350ce414 100644..100755
--- a/Examples/Modules/embedded_boundary_python_API/PICMI_inputs_EB_API.py
+++ b/Examples/Modules/embedded_boundary_python_API/PICMI_inputs_EB_API.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
from pywarpx import picmi, _libwarpx, fields
import numpy as np
diff --git a/Examples/Modules/embedded_boundary_python_API/analysis.py b/Examples/Modules/embedded_boundary_python_API/analysis.py
index b6b2955cf..09cc2accf 100755
--- a/Examples/Modules/embedded_boundary_python_API/analysis.py
+++ b/Examples/Modules/embedded_boundary_python_API/analysis.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# This script just checks that the PICMI file executed successfully.
# If it did there will be a plotfile for the final step.