Xtrack version 0.94.0
Changes:
- Correctly handle positions
RBendswhen computing drift lengths with specifiedspositions. - Support expressions in
atarguments ofEnvironment.place(). Environment.elements,Environment.vars,Environment.lines,Environment.particlesimplemented by dedicated container classes. It is enforced that names in the containers cannot overlap.- Introduce
mode="compose"forLine - Implement
Environment.elements.remove()that takes care of keeping consistency at the xdeps level. - Handle
BeamElement.extraandBeamElement.prototypethroughout the environment life cycle (includingcopy(),to_dict(),from_dict()). - Change behavior of
line.replicate(...)andline.clone(...): they takesuffixinstead ofnameand return a line instead of storing one inline.env.lines. - Fix in
BaseElement.to_dict() - Adapt examples and tests to use recommended API (
env.elementsinstead of element_dict/element_refs, env.ref[...] instead of env.vars[...] andenv.element_ref[...]).
Full Changelog: v0.93.2...v0.94.0