Skip to content
Snippets Groups Projects
Commit 3fe90953 authored by Claudio Scafuri's avatar Claudio Scafuri :speech_balloon:
Browse files

improved file handling

parent 1af66855
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/python3
import os
import at
import matplotlib.pylab as mp
ring=at.load_lattice("../../machine/lattice/elettra2/srElettra2_9_4_beta.mat",energy=2.4e9)
lattfile = "../../machine/lattice/elettra2/srElettra2_9_4_beta.mat"
#lattfile = "~/esrf_visit/last.mat"
lattfile = os.path.expanduser(lattfile)
ring=at.load_lattice(lattfile, energy=2.4e9)
refpts = range(len(ring) + 1)
ring.radiation_off()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment