diff options
author | 2020-01-24 11:38:22 -0800 | |
---|---|---|
committer | 2020-01-24 11:38:22 -0800 | |
commit | d21b7d819a1bc84fdb28deff578f369a6932b5b8 (patch) | |
tree | af6a1901206a9c10de60b9afdfcf3c606e1cf3ff /Examples/Modules/laser_injection_from_file/analysis.py | |
parent | f0f1e4009a53f032d6c69082e600680025086c89 (diff) | |
parent | a32b3292967b6b0ee766ad14303c6cd0f2369b04 (diff) | |
download | WarpX-d21b7d819a1bc84fdb28deff578f369a6932b5b8.tar.gz WarpX-d21b7d819a1bc84fdb28deff578f369a6932b5b8.tar.zst WarpX-d21b7d819a1bc84fdb28deff578f369a6932b5b8.zip |
Merge branch 'dev' into bugfix
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() |