diff options
author | 2019-09-11 10:06:14 -0700 | |
---|---|---|
committer | 2019-09-11 10:12:00 -0700 | |
commit | fd848331f2fd6af8c56a0027cc5f088286e347c4 (patch) | |
tree | 9f81ea5e8475ab5bd1e769d7865fc7fd492d06eb /Examples/Modules/RigidInjection/analysis_rigid_injection_LabFrame.py | |
parent | f182366aaf66a770715b144ac0a760a998f59ed4 (diff) | |
download | WarpX-fd848331f2fd6af8c56a0027cc5f088286e347c4.tar.gz WarpX-fd848331f2fd6af8c56a0027cc5f088286e347c4.tar.zst WarpX-fd848331f2fd6af8c56a0027cc5f088286e347c4.zip |
Source & Tools: No EOL Whitespaces
End-of-line (EOL) whitespaces are verbose and increase diffs and
merge conflicts over time.
Cleaned them up for the `Source/`, `Examples/` and `Tools/` directory
with the following bash one-liner:
```bash
find . -type f -not -path './.git*' \
-exec sed -i 's/[[:blank:]]*$//' {} \;
```
Committed as generic user so git does not credit the many lines
to me:
```bash
GIT_AUTHOR_NAME="Tools" GIT_AUTHOR_EMAIL="warpx@lbl.gov" \
git commit
```
Diffstat (limited to 'Examples/Modules/RigidInjection/analysis_rigid_injection_LabFrame.py')
-rwxr-xr-x | Examples/Modules/RigidInjection/analysis_rigid_injection_LabFrame.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Examples/Modules/RigidInjection/analysis_rigid_injection_LabFrame.py b/Examples/Modules/RigidInjection/analysis_rigid_injection_LabFrame.py index 86214ad72..21bfcf945 100755 --- a/Examples/Modules/RigidInjection/analysis_rigid_injection_LabFrame.py +++ b/Examples/Modules/RigidInjection/analysis_rigid_injection_LabFrame.py @@ -23,7 +23,7 @@ filename = sys.argv[1] # WarpX headers include more data when rigid injection is used, # which gives an error with the last yt release. -# To avoid this issue, the three last lines of WarpXHeader are removed if +# To avoid this issue, the three last lines of WarpXHeader are removed if # needed. def remove_rigid_lines(plotfile, nlines_if_rigid): header_name = plotfile + '/WarpXHeader' @@ -32,7 +32,7 @@ def remove_rigid_lines(plotfile, nlines_if_rigid): nlines = len(file_lines) f.close() if nlines == nlines_if_rigid: - f = open(header_name, 'w') + f = open(header_name, 'w') f.writelines(file_lines[:-3]) f.close() |