Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
annalisa-romano committed Mar 16, 2016
2 parents dd0a957 + 8e0005e commit a29cfe4
Show file tree
Hide file tree
Showing 41 changed files with 39 additions and 38 deletions.
2 changes: 1 addition & 1 deletion MP_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# This file is part of the code:
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down
7 changes: 4 additions & 3 deletions PyEC4PyHT.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#
# This file is part of the code:
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down Expand Up @@ -86,7 +86,7 @@ def __init__(self, L_ecloud, slicer, Dt_ref, pyecl_input_folder='./', flag_clean
slice_by_slice_mode=False, **kwargs):


print 'PyECLOUD Version 5.0.1'
print 'PyECLOUD Version 5.0.2'
print 'PyHEADTAIL module'
print 'Initializing ecloud from folder: '+pyecl_input_folder
self.slicer = slicer
Expand Down Expand Up @@ -295,7 +295,8 @@ def replace_with_recorded_field_map(self, delete_ecloud_data=True):
from PyHEADTAIL.field_maps.Transverse_Efield_map import Transverse_Efield_map
self.efieldmap = Transverse_Efield_map(xg = self.spacech_ele.xg, yg = self.spacech_ele.yg,
Ex=self.Ex_ele_last_track, Ey=self.Ey_ele_last_track, n_slices=self.slicer.n_slices,
z_cut=self.slicer.z_cuts, L_interaction=self.L_ecloud, flag_clean_slices = True)
z_cut=self.slicer.z_cuts, L_interaction=self.L_ecloud, flag_clean_slices = True,
x_beam_offset = self.x_beam_offset, y_beam_offset = self.y_beam_offset)

self._ecloud_track = self.track

Expand Down
4 changes: 2 additions & 2 deletions beam_and_timing.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# This file is part of the code:
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down Expand Up @@ -107,7 +107,7 @@ def __init__(self,flag_bunched_beam, fact_beam, coast_dens, beam_field_file, lam
exec(f.read())
f.close()
else:
ppb_vect = np.array(filling_pattern_file)
ppb_vect = np.float_(np.array(filling_pattern_file))

if flag_secodary_beam:
t=t_primary_beam
Expand Down
4 changes: 2 additions & 2 deletions buildup_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#
# This file is part of the code:
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down Expand Up @@ -59,7 +59,7 @@
class BuildupSimulation(object):
def __init__(self, pyecl_input_folder='./', **kwargs):

print 'PyECLOUD Version 5.0.1'
print 'PyECLOUD Version 5.0.2'
beamtim,MP_e, dynamics,impact_man, pyeclsaver, \
gas_ion_flag, resgasion, t_ion, \
spacech_ele,t_sc_ON, photoem_flag, phemiss,\
Expand Down
2 changes: 1 addition & 1 deletion change_version_number.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
with open(filename) as fid:
content=fid.read()
if '[email protected]' in content:
content=content.replace('PyECLOUD Version 5.0.1', 'PyECLOUD Version 5.0.1')
content=content.replace('PyECLOUD Version 5.0.2', 'PyECLOUD Version 5.0.2')
with open(filename,'w') as fid:
fid.write(content)

Expand Down
2 changes: 1 addition & 1 deletion dynamics_Boris_f2py.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# This file is part of the code:
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down
2 changes: 1 addition & 1 deletion dynamics_Boris_multipole.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# This file is part of the code:
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down
2 changes: 1 addition & 1 deletion dynamics_dipole.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# This file is part of the code:
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down
2 changes: 1 addition & 1 deletion dynamics_strong_B_generalized.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# This file is part of the code:
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down
2 changes: 1 addition & 1 deletion gas_ionization_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# This file is part of the code:
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down
2 changes: 1 addition & 1 deletion gen_photoemission_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# This file is part of the code:
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down
2 changes: 1 addition & 1 deletion geom_impact_ellip.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# This file is part of the code:
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down
2 changes: 1 addition & 1 deletion geom_impact_poly.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# This file is part of the code:
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down
2 changes: 1 addition & 1 deletion geom_impact_poly_fast_impact.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# This file is part of the code:
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down
2 changes: 1 addition & 1 deletion geom_impact_rect_fast_impact.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# This file is part of the code:
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down
2 changes: 1 addition & 1 deletion impact_management_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# This file is part of the code:
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down
2 changes: 1 addition & 1 deletion init.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# This file is part of the code:
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#
# This file is part of the code:
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down
2 changes: 1 addition & 1 deletion proc_video3.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# This file is part of the code:
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down
4 changes: 2 additions & 2 deletions pyecloud_saver.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#
# This file is part of the code:
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down Expand Up @@ -68,7 +68,7 @@ def __init__(self, logfile_path):
self.logfile_path = logfile_path
print 'Starting pyecloud_saver init.'
flog=open(self.logfile_path,'w')
flog.write('PyECLOUD Version 5.0.1\n')
flog.write('PyECLOUD Version 5.0.2\n')
timestr = time.strftime("%d %b %Y %H:%M:%S", time.localtime())
flog.write('Simulation started on %s\n'%timestr)
flog.close()
Expand Down
2 changes: 1 addition & 1 deletion sec_emission.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# This file is part of the code:
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down
2 changes: 1 addition & 1 deletion sec_emission_model_ECLOUD.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# This file is part of the code:
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down
2 changes: 1 addition & 1 deletion sec_emission_model_ECLOUD_nunif.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# This file is part of the code:
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down
2 changes: 1 addition & 1 deletion sec_emission_model_accurate_low_ene.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# This file is part of the code:
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down
2 changes: 1 addition & 1 deletion sec_emission_model_cos_low_ener.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# This file is part of the code:
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down
2 changes: 1 addition & 1 deletion sec_emission_model_flat_low_ener.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# This file is part of the code:
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down
2 changes: 1 addition & 1 deletion sincc_cosincc_cubsincc.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# This file is part of the code:
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down
2 changes: 1 addition & 1 deletion space_charge_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# This file is part of the code:
#
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down
2 changes: 1 addition & 1 deletion space_charge_class_SW_old.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# This file is part of the code:
#
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down
2 changes: 1 addition & 1 deletion test_StrongB_generalized.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# This file is part of the code:
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down
2 changes: 1 addition & 1 deletion test_StrongB_generalized_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# This file is part of the code:
#
# PyECLOUD Version 5.0.1
# PyECLOUD Version 5.0.2
#
#
# Author and contact: Giovanni IADAROLA
Expand Down
2 changes: 1 addition & 1 deletion testing/tests_buildup/000_run_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
print ''
print 'Test simulation done!'
print 'To instpect the results you can run:'
print '002_comparison_against_reference.py'
print '001_comparison_against_reference.py'
print ''
2 changes: 1 addition & 1 deletion testing/tests_buildup/001_comparison_against_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

pl.close('all')

# sim_folder = 'LHC_ArcQuadReal_450GeV_sey1.70_2.5e11ppb_bl_1.00ns'
# sim_folder = 'LHC_ArcDipReal_450GeV_sey1.70_2.5e11ppb_bl_1.00ns'
# sim_folder = 'LHC_ArcQuadReal_450GeV_sey1.65_2.5e11ppb_bl_1.00ns'
sim_folder = 'LHC_ArcDipReal_450GeV_sey1.00_2.5e11ppb_bl_1.00ns_gas_ionization'

Expand Down

0 comments on commit a29cfe4

Please sign in to comment.