From fd848331f2fd6af8c56a0027cc5f088286e347c4 Mon Sep 17 00:00:00 2001 From: Tools Date: Wed, 11 Sep 2019 10:06:14 -0700 Subject: 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 ``` --- Source/Utils/write_atomic_data_cpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Utils/write_atomic_data_cpp.py') diff --git a/Source/Utils/write_atomic_data_cpp.py b/Source/Utils/write_atomic_data_cpp.py index b085d50eb..1c85fa32c 100644 --- a/Source/Utils/write_atomic_data_cpp.py +++ b/Source/Utils/write_atomic_data_cpp.py @@ -60,7 +60,7 @@ for element in ion_names: '\n\s+(\d+)\s+\|\s+%s\s+\w+\s+\|\s+\+*(\d+)\s+\|\s+\(*\[*(\d+\.*\d*)' \ %element list_of_tuples = re.findall( regex_command, text_data ) - for count, energy in enumerate([x[2] for x in list_of_tuples]): + for count, energy in enumerate([x[2] for x in list_of_tuples]): if count%7==0: cpp_string += '\n ' cpp_string += energy + ', ' cpp_string = cpp_string[:-2] -- cgit v1.2.3