Introduces new parameter final_halfcell_complete to functions create_fel_beamline and create_fel_lattice. If True, all generated half-cells are identical, allowing matching of FODO lattice even for beamlines with just und_N=2 undulators. The default value is False, so unless specified the behavior of the functions remains unchanged.
Fixed remaining issue in function create_fel_lattice related to parameter und_N, not in all cases the requested number of undulators was returned.
Includes a demo script matching an undulator lattice with just two undulators. After matching the resulting beta functions are displayed.
Introduces new parameter
final_halfcell_complete
to functionscreate_fel_beamline
andcreate_fel_lattice
. If True, all generated half-cells are identical, allowing matching of FODO lattice even for beamlines with justund_N=2
undulators. The default value is False, so unless specified the behavior of the functions remains unchanged.Fixed remaining issue in function
create_fel_lattice
related to parameterund_N
, not in all cases the requested number of undulators was returned.Includes a demo script matching an undulator lattice with just two undulators. After matching the resulting beta functions are displayed.