OscarES / serpentinetracker

Automatically exported from code.google.com/p/serpentinetracker
GNU General Public License v3.0
0 stars 0 forks source link

Offsets not showing up in BPM readings #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
import serpentine
import beamrep
import beamline
from elements import *

bl = beamline.Line()
bl.append(Drift(name='dr1',L=1))
bl.append(BPM(name='bpm',L=0))
bl.append(Drift(name='dr2',L=1))

bm = beamrep.Beam(P=11)

s = serpentine.Serpentine(line=bl,beam=bm)
s.Track()
s.GetBPMReadings()

s.beamline[1].SetOffset([0.1,0,0,0,0,0])
s.Track()
s.GetBPMReadings()

What is the expected output? What do you see instead?
Expected offset to show up in bpm readings. 
seen:
array([[ 1.],
       [ 0.],
       [ 0.],
       [ 0.],
       [ 0.]])
array([[ 1.],
       [ 0.],
       [ 0.],
       [ 0.],
       [ 0.]])

What version of the product are you using? On what operating system?
Python 2.5.5, MacOs 10.6.7

Please provide any additional information below.
Thanks

Original issue reported on code.google.com by Francis....@live.rhul.ac.uk on 3 May 2011 at 1:20

GoogleCodeExporter commented 9 years ago
Thanks for pointing this out.  I've checked on my installation and it behaves 
in the same (wrong) way as well.
I'll look into it.

Original comment by sdmol...@gmail.com on 3 May 2011 at 10:43

GoogleCodeExporter commented 9 years ago

Original comment by sdmol...@gmail.com on 3 May 2011 at 10:56