Skip to content

Commit

Permalink
allow to start the tango server when MacroServer is down
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotan committed Jul 19, 2024
1 parent 63f093b commit 8bc4918
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2024-07-19 Jan Kotanski <[email protected]>
* allow to start the tango server when MacroServer is down (#131)
* tagged as v3.40.1

2024-01-25 Jan Kotanski <[email protected]>
* dynamic components for all motors when WritePoolMotorPositions (#128)
* tagged as v3.40.0
Expand Down
2 changes: 1 addition & 1 deletion nxsrecconfig/Release.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
""" NeXus Sardana Recorder Settings - Release """

#: (:obj:`str`) package version
__version__ = "3.40.0"
__version__ = "3.40.1"
16 changes: 8 additions & 8 deletions nxsrecconfig/Settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,15 @@ def __setupSelection(self):
"""
if not self.__server:
self.fetchProfile()
ms = self.__selector.getMacroServer()
amntgrp = MSUtils.getEnv('ActiveMntGrp', ms)
if amntgrp:
self.__selector["MntGrp"] = amntgrp
else:
avsel = self.availableProfiles()
if avsel and avsel[0]:
self.__selector["MntGrp"] = avsel[0]
try:
ms = self.__selector.getMacroServer()
amntgrp = MSUtils.getEnv('ActiveMntGrp', ms)
if amntgrp:
self.__selector["MntGrp"] = amntgrp
else:
avsel = self.availableProfiles()
if avsel and avsel[0]:
self.__selector["MntGrp"] = avsel[0]
self.fetchProfile()
except Exception:
import sys
Expand Down

0 comments on commit 8bc4918

Please sign in to comment.