Skip to content

Commit

Permalink
Merge pull request fbpic#696 from RemiLehe/fix_lasy_ci
Browse files Browse the repository at this point in the history
Update CI test for latest lasy version
  • Loading branch information
RemiLehe authored Aug 6, 2024
2 parents 1d523bb + ce06328 commit e826767
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_lasy_laser.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def run_and_check_laser_emission(gamma_b, data_dir, lasy_geometry):
npoints = (200,200,200)
laser = Laser(lasy_geometry, lo, hi, npoints, profile)
laser.propagate(-3 * c * tau)
laser.write_to_file("laguerrelaserRZ")
laser.write_to_file("laguerrelaserRZ", write_dir='lasy_data')

# Create an FBPIC simulation that reads this lasy file
# Initialize the simulation object
Expand All @@ -172,7 +172,7 @@ def run_and_check_laser_emission(gamma_b, data_dir, lasy_geometry):
sim.set_moving_window(v=c)

# Add the laser
laser_profile = FromLasyFileLaser( 'laguerrelaserRZ_00000.h5' )
laser_profile = FromLasyFileLaser( 'lasy_data/laguerrelaserRZ_00000.h5' )
add_laser_pulse(sim, laser_profile, method='antenna',
z0_antenna=0, gamma_boost=gamma_b)

Expand All @@ -197,7 +197,7 @@ def run_and_check_laser_emission(gamma_b, data_dir, lasy_geometry):

# Remove openPMD and lasy files
shutil.rmtree(data_dir)
os.remove('laguerrelaserRZ_00000.h5')
shutil.rmtree('lasy_data') # This folder is created by lasy
os.chdir('../')

def test_laser_emission_labframe():
Expand Down

0 comments on commit e826767

Please sign in to comment.