def setup(self):
     constraints = Mock()
     constraints.is_fully_constrained.return_value = True
     self.calc = YouHklCalculator(createMockUbcalc(None),
                                  createMockDiffractometerGeometry(),
                                  createMockHardwareMonitor(),
                                  constraints)
Esempio n. 2
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())
    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
Esempio n. 5
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
Esempio n. 6
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
Esempio n. 7
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
 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
Esempio n. 10
0
 def setup_method(self):
     constraints = Mock()
     constraints.is_fully_constrained.return_value = True
     self.calc = YouHklCalculator(createMockUbcalc(None),
                                  createMockDiffractometerGeometry(),
                                  createMockHardwareMonitor(), constraints)
Esempio n. 11
0
 def setup_method(self):
     self.calc = YouHklCalculator(createMockUbcalc(None),
                                  createMockDiffractometerGeometry(),
                                  createMockHardwareMonitor(), Mock())
Esempio n. 12
0
 def setup_method(self):
     self.calc = YouHklCalculator(createMockUbcalc(I * 2 * pi),
                                  createMockDiffractometerGeometry(),
                                  createMockHardwareMonitor(), Mock())
     self.e = 12.398420  # 1 Angstrom