only get dacnames if modules are attached (#550)

This commit is contained in:
Erik Fröjdh
2022-09-08 13:48:05 +02:00
committed by GitHub
parent afff85b44b
commit 236f00c810
3 changed files with 14 additions and 29 deletions

View File

@ -115,6 +115,11 @@ class Detector(CppDetectorApi):
fname = ut.make_string_path(fname)
self.loadConfig(fname)
#create a new object to replace the old, allow us to
#do a new initialization of dacs etc.
new_object = self.__class__(self.getShmId())
self.__dict__.update(new_object.__dict__)
@property
def parameters(self):
"""Sets detector measurement parameters to those contained in fname.