Skip to content

Commit a0dcb5d

Browse files
Fix Title when converting to MADX (#44)
1 parent 969ffe5 commit a0dcb5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

latticejson/convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def to_madx(latticejson: dict) -> str:
108108
elements = latticejson["elements"]
109109
sub_lattices = latticejson["sub_lattices"]
110110

111-
strings = [f"TITLE, \"{latticejson['name']}\""]
111+
strings = [f"TITLE, \"{latticejson['name']}\";"]
112112
element_template = "{}: {}, {};".format
113113
for name, (type_, attributes) in elements.items():
114114
attrs = ", ".join(f"{JSON_TO_MADX[k]}={v}" for k, v in attributes.items())

0 commit comments

Comments
 (0)