bug fix, clen substitution did not take into account the beam energy might be a float. Now, the possibility is taken into account
This commit is contained in:
@@ -118,7 +118,7 @@ def write_new_positions( path_to_geom, beam_x, beam_y, clen, energy, jungfrau, p
|
||||
current_geom_file = re.sub( current_clen, new_clen, current_geom_file )
|
||||
|
||||
# input new energy
|
||||
current_energy = r"photon_energy = \d+"
|
||||
current_energy = r"photon_energy = \d+\.?\d+?"
|
||||
new_energy = r"photon_energy = " + str( energy )
|
||||
current_geom_file = re.sub( current_energy, new_energy, current_geom_file )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user