print "Current hardware limits set to:" hardware() ### Create i21 bespoke secondary hkl devices # Warning: this breaks the encapsulation provided by the diffcalc.dc.you public # interface, and may be prone to breakage in future. print 'Creating i21 bespoke scannables:' from diffcalc.dc import dcyou as _dc from diffcalc.gdasupport.scannable.diffractometer import DiffractometerScannableGroup from diffcalc.gdasupport.scannable.hkl import Hkl print '- fourc_vessel & hkl_vessel' _fourc_vessel = I21DiffractometerStage('_fourc_vessel', m5tth, sa, chi_offset = 90) fourc_vessel = DiffractometerScannableGroup('fourc_vessel', _dc, _fourc_vessel) fourc_vessel.hint_generator = _fourc_vessel.get_hints hkl_vessel = Hkl('hkl_vessel', _fourc_vessel, _dc) h_vessel, k_vessel, l_vessel = hkl_vessel.h, hkl_vessel.k, hkl_vessel.l print '- fourc_lowq & hkl_lowq' LOWQ_OFFSET_ADDED_TO_DELTA_WHEN_READING = -8 _fourc_lowq = I21DiffractometerStage( '_fourc_lowq', m5tth, sa, chi_offset=90, delta_offset=LOWQ_OFFSET_ADDED_TO_DELTA_WHEN_READING) fourc_lowq = DiffractometerScannableGroup('fourc_lowq', _dc, _fourc_lowq) fourc_lowq.hint_generator = _fourc_lowq.get_hints hkl_lowq = Hkl('hkl_lowq', _fourc_lowq, _dc) h_lowq, k_lowq, l_lowq = hkl_lowq.h, hkl_lowq.k, hkl_lowq.l print '- fourc_highq & hkl_highq' highq_OFFSET_ADDED_TO_DELTA_WHEN_READING = 0