diff options
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() |