Skip to content

Commit

Permalink
Adapt to Sardana v3
Browse files Browse the repository at this point in the history
Adapt the code to not use the long time ago deprecated API.
Done by zreszela PR
  • Loading branch information
cmft committed Aug 11, 2021
1 parent 752617f commit f6d8ced
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions sardana_linkam/ctrl/LinkamTST350MotorCtrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@

import PyTango
import time
from sardana.pool.controller import MotorController
from sardana.pool.controller import (MotorController, Type, Description,
DefaultValue)

from sardana import State

Expand All @@ -49,11 +50,11 @@ class LinkamTST350MotorCtrl(MotorController):
MaxDevice = 3

AXIS_ATTR = ['PositionX', 'PositionY', 'PositionZ']
class_prop = {'DeviceName':
{'Type': 'PyTango.DevString',
'Description': 'Device name of the Smaract MCS DS'}}
ctrl_properties = {'DeviceName':
{Type: 'str',
Description: 'Device name of the Smaract MCS DS'}}

ctrl_extra_attributes = {}
axis_attributes = {}

def __init__(self, inst, props, *args, **kwargs):

Expand Down
4 changes: 2 additions & 2 deletions sardana_linkam/ctrl/LinkamTST350TempMotorCtrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ class LinkamTST350TempMotorCtrl(MotorController):
MaxDevice = 1
AXIS_ATTR = 'Temperature'
ctrl_properties = {'DeviceName':
{'Type': 'PyTango.DevString',
'Description': 'Device name of the Linkam TST350'}}
{Type: 'str',
Description: 'Device name of the Linkam TST350'}}

axis_attributes = {
"tolerance" : {
Expand Down

0 comments on commit f6d8ced

Please sign in to comment.