bmad-sim / pytao

PyTao is Python interface for Tao, which is based on the Bmad subroutine library for relativistic charged–particle and X-ray simulations in accelerators and storage rings.
https://bmad-sim.github.io/pytao
GNU General Public License v3.0
9 stars 6 forks source link

Add support for new INT_ARR #73

Closed ChristopherMayes closed 2 months ago

ChristopherMayes commented 2 months ago

This adds support for INT_ARR.

This is needed for items like space_charge_mesh_size in:

>>>tao.space_charge_com()
{'ds_track_step': 0.0,
 'dt_track_step': 1e-12,
 'cathode_strength_cutoff': 0.00999999977648258,
 'rel_tol_tracking': 1e-08,
 'abs_tol_tracking': 1e-10,
 'beam_chamber_height': 0.0,
 'lsc_sigma_cutoff': 0.100000001490116,
 'particle_sigma_cutoff': -1.0,
 'space_charge_mesh_size': array([32, 32, 64]),
 'csr3d_mesh_size': array([32, 32, 64]),
 'n_bin': 0,
 'particle_bin_span': 2,
 'n_shield_images': 0,
 'sc_min_in_bin': 10,
 'lsc_kick_transverse_dependence': False,
 'diagnostic_output_file': '""'}