at.load.json#
Handling of JSON files.
Functions
|
Create a |
|
Save a |
- load_json(filename, **kwargs)[source]#
Create a
Latticefrom a JSON file.- Parameters:
- Keyword Arguments:
* – All keywords update the lattice properties
- Returns:
lattice (Lattice) – New
Latticeobject
See also
Lattice.load()for a generic lattice-loading method.
- save_json(ring, filename=None, compact=False)[source]#
Save a
Latticeas a JSON file.- Parameters:
See also
save_lattice()for a generic lattice-saving function.Lattice.save()for a generic lattice-saving method.