:mod:`ocelot.adaptors.madx_old` =============================== .. py:module:: ocelot.adaptors.madx_old Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: ocelot.adaptors.madx_old.MadObj Functions ~~~~~~~~~ .. autoapisummary:: ocelot.adaptors.madx_old.RFcavity ocelot.adaptors.madx_old.line_transform ocelot.adaptors.madx_old.find_objects ocelot.adaptors.madx_old.subs_objects ocelot.adaptors.madx_old.parse_obj ocelot.adaptors.madx_old.replace_objects ocelot.adaptors.madx_old.translate ocelot.adaptors.madx_old.c2py ocelot.adaptors.madx_old.collect_sequence ocelot.adaptors.madx_old.lattice_str_from_madx ocelot.adaptors.madx_old.save_lattice_str ocelot.adaptors.madx_old.madx_seq2ocelot_seq ocelot.adaptors.madx_old.madx2ocelot .. data:: __author__ :annotation: = Sergey Tomin .. function:: RFcavity(l, volt, lag, harmon) .. py:class:: MadObj .. attribute:: name :annotation: = .. attribute:: type :annotation: = .. attribute:: params :annotation: = .. method:: parse_params(self) .. function:: line_transform(file) replace ":=" by "=" replace '!' by '#' if there is not ";" at the end line, collect the multiline all letters in lowercase .. function:: find_objects(lines) searching mad's objects. if there ara name and ":" it is object .. function:: subs_objects(mad_objs) .. function:: parse_obj(mad_objs) .. function:: replace_objects(lines, mad_objs) .. function:: translate(lines) .. function:: c2py(lines) .. function:: collect_sequence(lines) .. function:: lattice_str_from_madx(filename_seq) .. function:: save_lattice_str(lines, filename) .. function:: madx_seq2ocelot_seq(list_elem_pos, tot_length, exclude_elems=[]) .. function:: madx2ocelot(file_seq, exclude_elems) .. data:: name_file :annotation: = petra3.txt