def setup_method(self):

        self.ms = ModeSelector(createMockDiffractometerGeometry(),
                               parameterManager=None)
        self.pm = VliegParameterManager(createMockDiffractometerGeometry(),
                                        None, self.ms)
        self.ms.setParameterManager(self.pm)
    def setUp(self):

        self.ms = ModeSelector(createMockDiffractometerGeometry(),
                               parameterManager=None)
        self.pm = VliegParameterManager(createMockDiffractometerGeometry(),
                                        None, self.ms)
        self.ms.setParameterManager(self.pm)
 def setup(self):
     constraints = Mock()
     constraints.is_fully_constrained.return_value = True
     self.calc = YouHklCalculator(createMockUbcalc(None),
                                  createMockDiffractometerGeometry(),
                                  createMockHardwareMonitor(),
                                  constraints)
Exemplo n.º 4
0
    def setup_method(self):

        names = ['delta', NUNAME, 'mu', 'eta', 'chi', 'phi']
        self.hardware = SimpleHardwareAdapter(names)
        self.calc = YouHklCalculator(createMockUbcalc(None),
                                     createMockDiffractometerGeometry(),
                                     self.hardware, Mock())
    def setup(self):

        names = ['delta', NUNAME, 'mu', 'eta', 'chi', 'phi']
        self.hardware = SimpleHardwareAdapter(names)
        self.calc = YouHklCalculator(createMockUbcalc(None),
                                     createMockDiffractometerGeometry(),
                                     self.hardware,
                                     Mock())
Exemplo n.º 6
0
    def setup(self):
        self.mock_ubcalc = createMockUbcalc(None)
        self.mock_geometry = createMockDiffractometerGeometry()
        self.mock_hardware = SimpleHardwareAdapter(
                             ['delta', 'gamma', 'omegah', 'phi'])
        self.constraints = Mock()
        self.calc = WillmottHorizontalCalculator(self.mock_ubcalc,
                    self.mock_geometry, self.mock_hardware, self.constraints)

        self.places = 12
Exemplo n.º 7
0
    def setup_method(self):
        self.mock_ubcalc = createMockUbcalc(None)
        self.mock_geometry = createMockDiffractometerGeometry()
        self.mock_hardware = SimpleHardwareAdapter(
            ['delta', 'gamma', 'omegah', 'phi'])
        self.constraints = Mock()
        self.calc = WillmottHorizontalCalculator(self.mock_ubcalc,
                                                 self.mock_geometry,
                                                 self.mock_hardware,
                                                 self.constraints)

        self.places = 12
Exemplo n.º 8
0
    def setup_method(self):
        self.mock_ubcalc = createMockUbcalc(None)
        self.mock_geometry = createMockDiffractometerGeometry()
        names = ['delta', NUNAME, 'mu', 'eta', 'chi', 'phi']
        self.mock_hardware = SimpleHardwareAdapter(names)
        self.constraints = YouConstraintManager(self.mock_hardware)
        self.calc = YouHklCalculator(self.mock_ubcalc, self.mock_geometry,
                                     self.mock_hardware, self.constraints)

        self.mock_hardware.set_lower_limit('delta', 0)
        self.mock_hardware.set_upper_limit('delta', 179.999)
        self.mock_hardware.set_lower_limit('mu', 0)
        self.mock_hardware.set_lower_limit('eta', 0)
        self.mock_hardware.set_lower_limit('chi', -10)

        self.places = 11
Exemplo n.º 9
0
    def setup_method(self):
        self.mock_ubcalc = createMockUbcalc(None)
        self.mock_geometry = createMockDiffractometerGeometry()
        names = ['delta', NUNAME, 'mu', 'eta', 'chi', 'phi']
        self.mock_hardware = SimpleHardwareAdapter(names)
        self.constraints = YouConstraintManager(self.mock_hardware)
        self.calc = YouHklCalculator(self.mock_ubcalc, self.mock_geometry,
                                     self.mock_hardware, self.constraints)

        self.mock_hardware.set_lower_limit('delta', 0)
        self.mock_hardware.set_upper_limit('delta', 179.999)
        self.mock_hardware.set_lower_limit(NUNAME, 0)
        self.mock_hardware.set_upper_limit(NUNAME, 179.999)
        self.mock_hardware.set_lower_limit('mu', 0)
        self.mock_hardware.set_lower_limit('eta', 0)
        self.mock_hardware.set_lower_limit('chi', -10)

        self.places = 11
Exemplo n.º 10
0
 def setUp(self):
     self.hw = createMockHardwareMonitor()
     self.ms = ModeSelector(createMockDiffractometerGeometry())
     self.pm = VliegParameterManager(createMockDiffractometerGeometry(),
                                     self.hw, self.ms)
 def setup(self):
     self.calc = YouHklCalculator(createMockUbcalc(None),
                                  createMockDiffractometerGeometry(),
                                  createMockHardwareMonitor(),
                                  Mock())
 def setup(self):
     self.calc = YouHklCalculator(createMockUbcalc(I * 2 * pi),
                                  createMockDiffractometerGeometry(),
                                  createMockHardwareMonitor(),
                                  Mock())
     self.e = 12.398420  # 1 Angstrom
Exemplo n.º 13
0
 def setup_method(self):
     constraints = Mock()
     constraints.is_fully_constrained.return_value = True
     self.calc = YouHklCalculator(createMockUbcalc(None),
                                  createMockDiffractometerGeometry(),
                                  createMockHardwareMonitor(), constraints)
Exemplo n.º 14
0
 def setup_method(self):
     self.calc = YouHklCalculator(createMockUbcalc(None),
                                  createMockDiffractometerGeometry(),
                                  createMockHardwareMonitor(), Mock())
Exemplo n.º 15
0
 def setup_method(self):
     self.calc = YouHklCalculator(createMockUbcalc(I * 2 * pi),
                                  createMockDiffractometerGeometry(),
                                  createMockHardwareMonitor(), Mock())
     self.e = 12.398420  # 1 Angstrom
 def setup_method(self):
     self.hw = createMockHardwareMonitor()
     self.ms = ModeSelector(createMockDiffractometerGeometry())
     self.pm = VliegParameterManager(createMockDiffractometerGeometry(),
                                     self.hw, self.ms)