We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7ce915 commit 41f9840Copy full SHA for 41f9840
Examples/Modules/laser_injection/analysis_1d.py
@@ -1,6 +1,6 @@
1
#!/usr/bin/env python3
2
3
-# Copyright 2021 Prabhat Kumar, Remi Lehe
+# Copyright 2021-2022 Prabhat Kumar, Remi Lehe, Axel Huebl
4
#
5
# This file is part of WarpX.
6
@@ -12,6 +12,7 @@
12
# the simulation and it compares it with theory. It also checks that the
13
# central frequency of the Fourier transform is the expected one.
14
15
+import os
16
import sys
17
18
import matplotlib
@@ -171,7 +172,7 @@ def main():
171
172
173
check_laser(filename_end)
174
- test_name = filename_end[:-9] # Could also be os.path.split(os.getcwd())[1]
175
+ test_name = os.path.split(os.getcwd())[1]
176
checksumAPI.evaluate_checksum(test_name, filename_end)
177
178
if __name__ == "__main__":
0 commit comments