aboutsummaryrefslogtreecommitdiff
path: root/Examples/Tests/restart
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/Tests/restart')
-rwxr-xr-xExamples/Tests/restart/PICMI_inputs_runtime_component_analyze.py3
-rwxr-xr-xExamples/Tests/restart/analysis_restart.py4
2 files changed, 5 insertions, 2 deletions
diff --git a/Examples/Tests/restart/PICMI_inputs_runtime_component_analyze.py b/Examples/Tests/restart/PICMI_inputs_runtime_component_analyze.py
index bc1cd9217..ffb820fed 100755
--- a/Examples/Tests/restart/PICMI_inputs_runtime_component_analyze.py
+++ b/Examples/Tests/restart/PICMI_inputs_runtime_component_analyze.py
@@ -5,9 +5,10 @@
# to the original simulation.
import sys
+
import numpy as np
import pywarpx
-from pywarpx import picmi, callbacks
+from pywarpx import callbacks, picmi
##########################
# physics parameters
diff --git a/Examples/Tests/restart/analysis_restart.py b/Examples/Tests/restart/analysis_restart.py
index 7934cd518..1a5b13746 100755
--- a/Examples/Tests/restart/analysis_restart.py
+++ b/Examples/Tests/restart/analysis_restart.py
@@ -1,7 +1,8 @@
#!/usr/bin/env python3
-import sys
import os
+import sys
+
sys.path.insert(1, '../../../../warpx/Regression/Checksum/')
import checksumAPI
@@ -10,6 +11,7 @@ filename = sys.argv[1]
# Check restart data v. original data
sys.path.insert(0, '../../../../warpx/Examples/')
from analysis_default_restart import check_restart
+
check_restart(filename)
# Check-sum analysis