{
    "cli_functions": {
        "calc_ideal_focus": {
            "class_name": "CRLSimulator.calc_ideal_focus",
            "description_long": "",
            "description_short": "Calculate ideal focus for the CRL with specified parameters",
            "parameters": {
                "delta": {
                    "default": null,
                    "help": "the index of refraction",
                    "type": "float"
                },
                "n": {
                    "default": null,
                    "help": "number of lenses in the CRL",
                    "type": "int"
                },
                "p0": {
                    "default": null,
                    "help": "distance from source to the CRL [m]",
                    "type": "float"
                },
                "radius": {
                    "default": null,
                    "help": "radius on tip of parabola [m]",
                    "type": "float"
                }
            },
            "returns": "c"
        },
        "simulate_crl": {
            "class_name": "CRLSimulator",
            "description_long": "    Calculate real CRL under-/over-focusing comparing with the ideal lens.\n\n    Example::\n\n        d = default_command(\n            cart_ids=['2', '4', '6', '7', '8'],\n            energy=21500,\n            p0=6.52,\n            verbose=True\n        )\n\n    Output::\n\n        \"d\",\"d_ideal\",\"f\",\"p0\",\"p1\",\"p1_ideal\"\n        0.00120167289264,-0.0661303590822,1.0480597835,6.52,1.24879832711,1.31613035908",
            "description_short": "Runner of the CRL simulator",
            "returns": [
                "d",
                "d_ideal",
                "f",
                "p0",
                "p1",
                "p1_ideal"
            ]
        }
    },
    "parameters": {
        "beamline": {
            "default": "smi",
            "help": "beamline name",
            "type": "str"
        },
        "calc_delta": {
            "default": false,
            "help": "a flag to calculate delta analytically",
            "type": "bool"
        },
        "cart_ids": {
            "default": null,
            "element_type": "str",
            "help": "cartridges ids",
            "type": "list"
        },
        "d_ssa_focus": {
            "default": 8.1,
            "help": "Distance from SSA [m]",
            "type": "float"
        },
        "data_file": {
            "default": "Be_delta.dat",
            "help": "data file with delta values for the material of the CRL (e.g., Be)",
            "type": "str"
        },
        "dl_cart": {
            "default": 0.03,
            "help": "distance between centers of two neighbouring cartridges [m]",
            "type": "float"
        },
        "dl_lens": {
            "default": 0.002,
            "help": "distance between two lenses within a cartridge [m]",
            "type": "float"
        },
        "energy": {
            "default": null,
            "help": "photon energy [eV]",
            "type": "float"
        },
        "lens_array": {
            "default": [
                1,
                2,
                4,
                8,
                16
            ],
            "element_type": "int",
            "help": "possible number of lenses in cartridges",
            "type": "list"
        },
        "outfile": {
            "default": false,
            "help": "output file",
            "type": "str"
        },
        "output_format": {
            "default": "csv",
            "help": "output file format (CSV, JSON, plain text)",
            "type": "str"
        },
        "p0": {
            "default": 6.2,
            "help": "distance from z=50.9 m to the first lens in the most upstream cartridge at the most upstream position of the transfocator [m]",
            "type": "float"
        },
        "r_array": {
            "default": [
                50,
                200,
                500
            ],
            "element_type": "int",
            "help": "radii of available lenses in different cartridges [um]",
            "type": "list"
        },
        "radii_tolerance": {
            "default": 1e-08,
            "help": "tolerance to compare radii [m]",
            "type": "float"
        },
        "teta0": {
            "default": 6e-05,
            "help": "divergence of the beam before CRL [rad]",
            "type": "float"
        },
        "use_numpy": {
            "default": false,
            "help": "a flag to use NumPy for operations with matrices",
            "type": "bool"
        },
        "verbose": {
            "default": false,
            "help": "a flag to print output to console",
            "type": "bool"
        }
    }
}
