Skip to content

Commit 41f9840

Browse files
committed
Fix CI Tests for LaserInjection_1d
1 parent c7ce915 commit 41f9840

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Examples/Modules/laser_injection/analysis_1d.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22

3-
# Copyright 2021 Prabhat Kumar, Remi Lehe
3+
# Copyright 2021-2022 Prabhat Kumar, Remi Lehe, Axel Huebl
44
#
55
# This file is part of WarpX.
66
#
@@ -12,6 +12,7 @@
1212
# the simulation and it compares it with theory. It also checks that the
1313
# central frequency of the Fourier transform is the expected one.
1414

15+
import os
1516
import sys
1617

1718
import matplotlib
@@ -171,7 +172,7 @@ def main():
171172

172173
check_laser(filename_end)
173174

174-
test_name = filename_end[:-9] # Could also be os.path.split(os.getcwd())[1]
175+
test_name = os.path.split(os.getcwd())[1]
175176
checksumAPI.evaluate_checksum(test_name, filename_end)
176177

177178
if __name__ == "__main__":

0 commit comments

Comments
 (0)