Made _param_to_pv an instance variable
This commit is contained in:
@@ -76,9 +76,6 @@ class Motor:
|
||||
"busypoll", "idlepoll", "pv", "default_position", 'logger',
|
||||
"_epics_wrapper")
|
||||
|
||||
# This will store PV objects for each PV param and is populated by the init function
|
||||
_param_to_pv = {}
|
||||
|
||||
# Motor record fields
|
||||
fields = {
|
||||
'readpv': 'RBV',
|
||||
@@ -124,6 +121,8 @@ class Motor:
|
||||
self.default_position = default_position
|
||||
self._epics_wrapper = CaprotoWrapper(TIMEOUT)
|
||||
|
||||
# This will store PV objects for each PV param and is populated by the init function
|
||||
self._param_to_pv = {}
|
||||
for (access_name, pvname) in self._get_pvs().items():
|
||||
self._epics_wrapper.connect_pv(pvname)
|
||||
self._param_to_pv[access_name] = pvname
|
||||
|
||||
Reference in New Issue
Block a user