Skip to content

Commit

Permalink
Another minor fix to mad8_to_bmad.py (#1049)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSagan authored Jul 10, 2024
1 parent 0ac0de5 commit e8ffc38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util_programs/mad_to_bmad/mad8_to_bmad.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ def parse_command(command, dlist):

common.var_name_list.append(dlist[0])
name = dlist[0]
value = bmad_expression(''.join(dlist[2:]), dlist[0])
value = bmad_expression(''.join(dlist[2:]), '')
if '[' in value or not common.prepend_vars: # Involves an element parameter
f_out.write(f'{name} = {value}\n')
else:
Expand Down

0 comments on commit e8ffc38

Please sign in to comment.