diff options
Diffstat (limited to 'Examples/Modules/laser_injection_from_file/analysis.py')
-rwxr-xr-x | Examples/Modules/laser_injection_from_file/analysis.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Examples/Modules/laser_injection_from_file/analysis.py b/Examples/Modules/laser_injection_from_file/analysis.py index 05a245e52..03c2a3c5c 100755 --- a/Examples/Modules/laser_injection_from_file/analysis.py +++ b/Examples/Modules/laser_injection_from_file/analysis.py @@ -16,14 +16,17 @@ # - Compute the theory for laser envelope at time T # - Compare theory and simulation, for both envelope and central frequency -import yt ; yt.funcs.mylog.setLevel(50) -import numpy as np +import glob +import os + import matplotlib + matplotlib.use('Agg') import matplotlib.pyplot as plt +import numpy as np from scipy.signal import hilbert -import glob -import os + +import yt ; yt.funcs.mylog.setLevel(50) #Maximum acceptable error for this test relative_error_threshold = 0.065 |