Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 18, 2024
1 parent b81ec48 commit 5979cc4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
sys.path.insert(1, "../../../../warpx/Regression/Checksum/")
from checksumAPI import evaluate_checksum

def analyze_openpmd_regression(output_file):

def analyze_openpmd_regression(output_file):
# Run checksum regression test
if re.search("single_precision", output_file):
evaluate_checksum(
Expand All @@ -25,7 +25,8 @@ def analyze_openpmd_regression(output_file):
test_name=test_name,
output_file=output_file,
output_format="openpmd",
)
)


def load_field_from_iteration(
series, iteration: int, field: str, coord: str = None
Expand All @@ -48,7 +49,7 @@ def load_field_from_iteration(
return field_data


def compare_time_avg_with_instantaneous_diags(dir_inst : str, dir_avg : str):
def compare_time_avg_with_instantaneous_diags(dir_inst: str, dir_avg: str):
"""Compare instantaneous data (multiple iterations averaged in post-processing) with in-situ averaged data."""

field = "E"
Expand Down Expand Up @@ -84,7 +85,6 @@ def compare_time_avg_with_instantaneous_diags(dir_inst : str, dir_avg : str):


if __name__ == "__main__":

test_name = os.path.split(os.getcwd())[1]
inst_output_file = sys.argv[1]

Expand Down
2 changes: 1 addition & 1 deletion Examples/analysis_default_openpmd_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ def analyze_openpmd_regression():


if __name__ == "__main__":
analyze_openpmd_regression()
analyze_openpmd_regression()

0 comments on commit 5979cc4

Please sign in to comment.