:mod:`ocelot.adaptors.astra_lattice_converter` ============================================== .. py:module:: ocelot.adaptors.astra_lattice_converter .. autoapi-nested-parse:: Astra <--> Ocelot lattice converter Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: ocelot.adaptors.astra_lattice_converter.AstraLatticeConverter .. py:class:: AstraLatticeConverter .. method:: astra2ocelot(self, filename) :filename - input Astra lattice filename .. method:: ocelot2astra(self, lattice, pos_start=0.0, filename='lattice.in') :lattice - Ocelot lattice object :pos_start - longitudinal position of the beginning of the first element :filename - output Astra lattice filename