def init(self):
     CollectMockup.init(self)
     # NBNB you get an error if you use 'api.session'
     session_hwobj = self.getObjectByRole("session")
     if session_hwobj and self.hasObject("override_data_directories"):
         dirs = self["override_data_directories"].getProperties()
         session_hwobj.set_base_data_directories(**dirs)
Exemplo n.º 2
0
 def init(self):
     CollectMockup.init(self)
     # NBNB you get an error if you use 'HWR.beamline.session'
     session = HWR.beamline.session
     if session and self.hasObject("override_data_directories"):
         dirs = self["override_data_directories"].getProperties()
         session.set_base_data_directories(**dirs)
Exemplo n.º 3
0
    def __init__(self, name):
        CollectMockup.__init__(self, name)

        # # TODO get appropriate value
        # # We must have a value for functions to work
        # # This ought to be OK for a Pilatus 6M (See TangoResolution object)

        # self._detector_distance = 300.
        # self._wavelength = 1.0

        self._counter = 1
    def __init__(self, name):
        CollectMockup.__init__(self, name)

        # # TODO get appropriate value
        # # We must have a value for functions to work
        # # This ought to be OK for a Pilatus 6M (See TangoResolution object)
        # self.det_radius = 212.

        # self._detector_distance = 300.
        # self._wavelength = 1.0

        self._counter = 1