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

Parse string into bool in `parse_parse_data_d_array` #79

Closed ChristopherMayes closed 3 months ago

ChristopherMayes commented 3 months ago

This fixes a bug in parse_parse_data_d_array, where it was using bool to cast a string, which is not the correct thing to do because:

>>> bool('F')
True