0.12.0
Enhancements
Added a
modelsmodule incpymadtoolsto hold variouspydanticmodels for data manipulated in the library functions.Added a
query_beam_attributesfunction incpymadtools.parametersthat returns a parsed and validated MADXBeam with allBEAMattributes from theMAD-Xprocess based on the currently defined beam.Added a
ptc_twissfunction incpymadtools.ptcto conveniently create thePTCuniverse and perform aTWISScommand according to the Ripken-Mais formalism.Added a
ptc_track_particlefunction incpymadtools.ptcto conveniently create thePTCuniverse and perform particle tracking similarly tocpymadtools.track.track_single_particle.Added a
get_footprint_linesfunction incpymadtools.tuneto obtain the (Qx, Qy) points needed to plot the footprint based on the TfsDataFrame returned bymake_footprint_table. To be considered experimental.Added a
get_footprint_patchesfunction incpymadtools.tuneto obtain a collection ofmatplotlib.patches.Polygonelements needed to plot the footprint based on the TfsDataFrame returned bymake_footprint_table. To be considered experimental.The
get_table_tfsfunction incpmadtools.utilsnow takes a headers_table argument to choose an internal table to use for headers.
Maintenance
The default energy value in
cpymadtools.special.make_lhc_beamshas been changed to 7000 [GeV] to reflect run III scenario.The value for npart in
cpymadtools.special.make_lhc_beamshas been changed to 1.15e11 to reflect run III scenario.The
make_footprint_tableincpymadtools.tunenow returns a TfsDataFrame instead of aDataFrame, the headers of which are populated with useful values for other functions.The
beam_parametersfunction incpymadtools.parametershas been moved to theoptics.beammodule and renamedcompute_beam_parameters.The default
patch.linewidthvalue in the phd matplotlib style has been changed to 1.5.
See v0.12.0 release notes on GitHub and the full changes since v0.11.0.