Commit e4f8e7fd authored by Breno Rilho Lemos's avatar Breno Rilho Lemos 💬
Browse files

Commit drivers.py before pushing

parent efe37505
......@@ -79,14 +79,14 @@ class dataDriver(animationDriver): # A driver for data from files.
lines = detail_file.readlines()
#loop over particles and get information from data file
for i in range(0, N_particles):
x = lines[i].split(' ')[0]
y = lines[i].split(' ')[1]
z = lines[i].split(' ')[2]
mass = lines[i].split(' ')[3]
charge = lines[i].split(' ')[4]
Px = lines[i].split(' ')[5]
Py = lines[i].split(' ')[6]
Pz = lines[i].split(' ')[7]
x = lines[i].split()[0]
y = lines[i].split()[1]
z = lines[i].split()[2]
mass = lines[i].split()[3]
charge = lines[i].split()[4]
Px = lines[i].split()[5]
Py = lines[i].split()[6]
Pz = lines[i].split()[7]
part = ParticlePropagator(i,x,y,z,charge,mass)
part.SetMagneticField()
part.SetProperties(Px,Py,Pz)
......
Markdown is supported
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