diff options
author | 2020-01-22 10:55:31 -0800 | |
---|---|---|
committer | 2020-01-22 10:55:31 -0800 | |
commit | 37658d9be9d9368f94bd95ec6d2f1cd0e5f3bf3b (patch) | |
tree | 10c4d4c2a5efeee1642f88fca4591abc2266855c /Examples/Modules/laser_injection_from_file/analysis.py | |
parent | 3c8d481997a0a5063fd32b68d907cf1f70b10e8e (diff) | |
parent | 6abaac6d206162963ce9fab6c833708425f7a2ab (diff) | |
download | WarpX-37658d9be9d9368f94bd95ec6d2f1cd0e5f3bf3b.tar.gz WarpX-37658d9be9d9368f94bd95ec6d2f1cd0e5f3bf3b.tar.zst WarpX-37658d9be9d9368f94bd95ec6d2f1cd0e5f3bf3b.zip |
fixing merge conflict with dev
Diffstat (limited to 'Examples/Modules/laser_injection_from_file/analysis.py')
-rwxr-xr-x | Examples/Modules/laser_injection_from_file/analysis.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Examples/Modules/laser_injection_from_file/analysis.py b/Examples/Modules/laser_injection_from_file/analysis.py index d1ef8a001..9c8629215 100755 --- a/Examples/Modules/laser_injection_from_file/analysis.py +++ b/Examples/Modules/laser_injection_from_file/analysis.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # This file is part of the WarpX automated test suite. It is used to test the # injection of a laser pulse from an external binary file. @@ -10,13 +10,15 @@ import yt ; yt.funcs.mylog.setLevel(50) import numpy as np +import matplotlib +matplotlib.use('Agg') import matplotlib.pyplot as plt from scipy.signal import hilbert import glob import os #Maximum acceptable error for this test -relative_error_threshold = 0.06 +relative_error_threshold = 0.065 #Physical parameters um = 1.e-6 @@ -210,7 +212,7 @@ def main() : launch_analysis(executables[0]) else : assert(False) - + print('Passed') if __name__ == "__main__": main() |