Skip to content

Commit

Permalink
Hotfix: Linear longitudinal tracking accepts Qs...
Browse files Browse the repository at this point in the history
...in the form of a 1D array with length of one,
as provided by the PyHEADTAIL synchrotron.
  • Loading branch information
giadarol committed Jun 13, 2016
1 parent da0b0b9 commit 7fccc08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trackers/simple_long_tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ def __init__(self, alpha_array, circumference, Qs, D_x=0, D_y=0,*args, **kwargs)
'''
super(LinearMap, self).__init__(alpha_array, circumference,
*args, **kwargs)
assert (np.isscalar(Qs)), "Qs has to be a scalar"
assert (len(np.atleast_1d(Qs)) == 1), "Qs can only have one entry!"
self.Qs = Qs
self.D_x = D_x
self.D_y = D_y
Expand Down

0 comments on commit 7fccc08

Please sign in to comment.