Skip to content

Releases: xsuite/xtrack

Xtrack version 0.98.1

03 Dec 21:22

Choose a tag to compare

Changes:

  • Fix in twiss adaptive steps

Full Changelog: v0.98.0...v0.98.1

Xtrack version 0.98.0

03 Dec 17:54

Choose a tag to compare

Changes:

  • Modified behavior of Bend and RBend. In particular k0_from_h is True by default, it becomes False when the k0 is set. h becomes read-only. For RBend, length becomes read-only, the length is set by length_straight.
  • Fix in Line.build_tracker().
  • Discontinue deprecated Multiline

Full Changelog: v0.97.2...v0.98.0

Xtrack version 0.97.2

01 Dec 09:59

Choose a tag to compare

Changes:

  • Temporarily pin pymadng version while waiting for a new release correcting chromaticity calculations

Full Changelog: v0.97.1...v0.97.2

Xtrack version 0.97.1

26 Nov 19:43

Choose a tag to compare

Changes:

  • Generalize RBend to support arbitrary orientation and shift. Added attributes: rbend_compensate_sagitta, rbend_angle_diff #729 .
  • Updates in documentation #726 and #728.
  • Further the implementation of include headers functionality #714:
    • Register headers for Xtrack the same way as the other packages (through the hook in pyproject.toml). This means the headers can also (and in the future should only) be included with #include "xtrack/..." without assuming xtrack is top-level. This is to avoid collisions with the other Xsuite packages. In the future the old way should be disabled.
    • Update the examples to use the new way.
    • Populate properly the pyproject.toml file. We can remove setup.py while still using setuptools, as it's not doing anything special currently.
    • Bump the supported Python version to 3.9+.
    • Move atomicAdd and qualifier keyword macros to Xobjects (see xsuite/xobjects#160).
    • Implement what we can with headers (e.g. multisetter.h, local_particle_custom_api.h)
    • Get rid of the magic comment /*placeholder_for_local_particle_src*/ and the related behaviour (the functionality was unnecessarily convoluted as a result of ParticlesPurelyLongitudinal -- it is now simpler, is fact no need to regenerate and propagate local_particle_src as it's completely static in the current version of Xsuite).
    • The above also indirectly fixes a bug where /*placeholder...*/ would be ignored if the same snippet of code didn't contain //start_per_particle_block.

Full Changelog: v0.97.0...v0.97.1

Xtrack version 0.96.2

21 Nov 08:07

Choose a tag to compare

Changes:

  • Re-add a mistakenly deleted function

Full Changelog: v0.96.1...v0.96.2

Xtrack version 0.96.1

20 Nov 15:45

Choose a tag to compare

Changes:

  • Miscellanous fixes in the native madloader #715
    • Updated the MAD-X parser to allow element names to be strings or identifiers throughout sequences, lines, and commands, and to support line continuations with &. This makes parsing compatible with a wider range of MAD-X inputs.
    • Align aperture loading with MAD-X: if no apertype is specified, it now defaults to 'circle'.
    • Removed the ability to specify apertures as standalone elements, as this was never a feature of MAD-X itself.
    • Added some missing MAD-X element types as drifts.
  • Refactored thick and thin element insertion methods in xtrack/line.py to use the new place and insert APIs, simplifying the code and making element placement more robust and maintainable.
  • Fixed typos in error messages for several Line methods #719
  • Added backward compatibility for element shifts by accepting both shift_x and _shift_x (and similarly for shift_y and shift_s) in xtrack/base_element.py, ensuring legacy element dictionaries can be loaded without errors #720
  • Fixed bug in tests #717
  • Implemented an ACDipole element #660

Full Changelog: v0.96.0...v0.96.1

Xtrack version 0.96.0

17 Nov 11:03

Choose a tag to compare

Changes:

  • Implement Environment.vars.rename(…)
  • `xt.load(…) supports a list of mad files.
  • Add s_tol and and _rbend_correct_k0 options to xt.load().
  • Mark autogenerated drifts ad ||drift_XX and reuse them when possible. No DriftSlice element is created when these drifts are sliced.
  • Preserve last context when rebuilding trackers without passing context or buffer.
  • In LimitPolygon avoid enforcing anti-clockwise ordering of vertices.
  • Fix issue in LossLoacationRefinement
  • Fixes in MAD-X writer, MAD-NG interface and native MAD-X loader.

Full Changelog: v0.95.0...v0.96.0

Xtrack version 0.95.0

10 Nov 13:43

Choose a tag to compare

Changes:

  • Fixes in native MAD-X loader: thin solenoid, k2 in bends, k0 differing from h. Extend knl/ksl when needed.
  • Improved atomic_add C function
  • Store angles instead of sin/cos in misalignments
  • Add k2 attribute to Bend and RBend
  • Support thick slicing of misaligned elements
  • Support spin tracking for misaligned elements
  • Support and set the nocharge option in the MAD-NG interface

Full Changelog: v0.94.2...v0.95.0

Xtrack version 0.94.2

31 Oct 21:06

Choose a tag to compare

Changes:

  • Better handling of k0_from_h in python lattice writer

Full Changelog: v0.94.1...v0.94.2

Xtrack version 0.94.1

30 Oct 14:01

Choose a tag to compare

Changes:

  • Added support for rigidity0 and kinetic_energy0 as reference quantities in the Particles class, including initialization, property access, and setters, allowing users to define particles by magnetic rigidity and kinetic energy directly.
  • Fix in cpymad loader for magnetic errors.

Full Changelog: v0.94.0...v0.94.1