dls-controls / pythonSoftIOC

Embed an EPICS IOC in a Python process
Apache License 2.0
32 stars 7 forks source link

Provide an add_alias() method to ease alias creation #42

Open AlexanderWells-diamond opened 2 years ago

AlexanderWells-diamond commented 2 years ago

Currently a record, inside a RecordWrapper, can have aliases added to it by calling add_alias(). However this is a bit awkward as you have to provide not just the alias'd name but also the device prefix. This often means an application wanting to create aliases has to keep the record prefix accessible everywhere. This is obviously somewhat awkward and could be streamlined by having this logic handled for us in PythonSoftIOC.

AlexanderWells-diamond commented 2 years ago

Just to note that the add_alias method is not actually documented in PythonsoftIOC itself - its inherited from EpicsDbBuilder and is documented here