beam-tracing / Scotty

Beam tracing code for diagnostics
https://scotty.readthedocs.io/en/latest/
GNU General Public License v3.0
7 stars 4 forks source link

Minor bug fix for outplot #117

Closed fongkenrui closed 1 year ago

fongkenrui commented 1 year ago

Previously the if-else sequence for the outplot method always stops at the first branch.

if option == 'RZ Trajectory' or 'all'

The 2nd statement after the or is a pure string that always evaluates to True. The conditional needs to be duplicated.

if option == 'RZ Trajectory' or option == 'all'

valerian-chen commented 1 year ago

Yeah, nice spot.