diff options
-rw-r--r-- | Docs/source/running_cpp/parameters.rst | 2 | ||||
-rwxr-xr-x | Examples/Tests/reduced_diags/analysis_reduced_diags.py | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Docs/source/running_cpp/parameters.rst b/Docs/source/running_cpp/parameters.rst index 3ff6c3162..35151738c 100644 --- a/Docs/source/running_cpp/parameters.rst +++ b/Docs/source/running_cpp/parameters.rst @@ -1222,7 +1222,7 @@ Diagnostics and output If one uses a python script to read the data, one example is the following: - :: + .. code-block:: python import numpy data = numpy.genfromtxt("filename.txt") diff --git a/Examples/Tests/reduced_diags/analysis_reduced_diags.py b/Examples/Tests/reduced_diags/analysis_reduced_diags.py index ff225062e..2a230c8e5 100755 --- a/Examples/Tests/reduced_diags/analysis_reduced_diags.py +++ b/Examples/Tests/reduced_diags/analysis_reduced_diags.py @@ -60,11 +60,11 @@ EFyt = 0.5*Es*scc.epsilon_0*dV + 0.5*Bs/scc.mu_0*dV # PART2: get results from reduced diagnostics -EFdata = np.genfromtxt("EF.txt") -EPdata = np.genfromtxt("EP.txt") +EFdata = np.genfromtxt("./diags/reducedfiles/EF.txt") +EPdata = np.genfromtxt("./diags/reducedfiles/EP.txt") -EF = EFdata[1][2] -EP = EPdata[1][2] +EF = EFdata[1][2] #[1][2] is the 2nd row and the 3rd column which is the total field energy +EP = EPdata[1][2] #[1][2] is the 2nd row and the 3rd column which is the total particle energy # PART3: print and assert |