Skip to content

Commit

Permalink
Merge pull request #17 from MaxIV-KitsControls/index_error
Browse files Browse the repository at this point in the history
Index error
  • Loading branch information
wkitka authored Mar 17, 2021
2 parents abf9b4d + 9c53b53 commit 6612a1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sardana_albaem/ctrl/Albaem2CoTiCtrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def GetAxisExtraPar(self, axis, name):
raise ValueError('The axis 1 does not use the extra attributes')

name = name.lower()
axis -= 1
axis -= 2
if name == "range":
return self._em2[axis].range
elif name == 'inversion':
Expand All @@ -272,7 +272,7 @@ def SetAxisExtraPar(self, axis, name, value):
raise ValueError('The axis 1 does not use the extra attributes')

name = name.lower()
axis -= 1
axis -= 2
if name == "range":
self._em2[axis].range = value
elif name == 'inversion':
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def main():
"""Main method collecting all the parameters to setup."""
name = "sardana-albaem"

version = "0.0.9"
version = "0.0.10"

description = "AlbaEM Sardana Controller"

Expand Down

0 comments on commit 6612a1d

Please sign in to comment.