Changes:
- Fix in emittance calculation with solenoids
- Ability to slice repeated elements.
- Added a summary of key methods and attributes in the
Environment
class docstring. - Anchors in line definitions:
env.new_line()
andBuilder
now support anchors (env.place
andenv.new
accept a parameteranchor
valuedstart
,end
,center
).- Enabled placement of sub-lines and handling of thin elements with clear ordering.
- Line-editing methods:
- Introduced new
Line
methods:insert
,append
,remove
, andreplace
. - Deprecated
Line.insert_element
andLine.append_element
in favor of new methods. - Unified API behavior with
Builder
for consistency.
- Introduced new
- Deprecation of
Multiline
in favour ofEnvironment
:- Extended
Environment
to handle all use cases of the deprecatedMultiline
. - API backward compatibility ensured
- Automatic conversion of old
Multiline
JSON toEnvironment
to ease transition. - Introduced renaming for shared elements (e.g.,
'mqxfa.a1r1/lhcb1'
). - Marked
Multiline
for removal within 1–2 months, pending user communication and JSON re-saving.
- Extended
- Apply fixes and relax some tolerances in tests after a new release of SciPy changes some of the constants in
scipy.constant
.
Full Changelog: v0.72.2...v0.73.0