demoCommands.append( "setlat 'cubic' 1 1 1 90 90 90" )
demoCommands.append( "pos wl 1" )
demoCommands.append( "pos fourc [60 30 90 0]" )
demoCommands.append( "addref 0 0 1" )
demoCommands.append( "addref 1 0 0 [60 30 0 0] 12.39842" )
demoCommands.append( "checkub" )
demoCommands.append( "ub" )
demoCommands.append( "hklmode" )

#rpenergy = DummyPD('rpenergy')
#rpenergy.moveTo(12398.42)
#exec('del tth, th, chi, phi')
CREATE_DUMMY_AXES = False
if CREATE_DUMMY_AXES:
	print "Creating Dummy Axes: tth, th, chi, phi and rpenergy"
	tth = DummyPD('tth'); tth.setLowerGdaLimits(-80); tth.setUpperGdaLimits(260)
	th  = DummyPD('th');th.setLowerGdaLimits(-100); th.setUpperGdaLimits(190)
	chi = DummyPD('chi'); chi.setLowerGdaLimits(86); chi.setUpperGdaLimits(94)
	phi = DummyPD('phi')
	rpenergy = DummyPD('rpenergy')
	rpenergy.moveTo(12398.42)
	print "Moved rpenergy to 12398.42 eV (1 Angstrom)"
	chi.moveTo(90)
	print "Moved chi to 90"
	print "="*80

diffcalcObjects = create_objects(
	axis_scannable_list = (tth, th, chi, phi),
	energy_scannable = denergy,
	energy_scannable_multiplier_to_get_KeV = .001,
	geometry = 'fourc',
Esempio n. 2
0
demoCommands.append("pos fourc [60 30 90 0]")
demoCommands.append("addref 0 0 1")
demoCommands.append("addref 1 0 0 [60 30 0 0] 12.39842")
demoCommands.append("checkub")
demoCommands.append("ub")
demoCommands.append("hklmode")

#rpenergy = DummyPD('rpenergy')
#rpenergy.moveTo(12398.42)
#exec('del tth, th, chi, phi')
CREATE_DUMMY_AXES = False
if CREATE_DUMMY_AXES:
    print "Creating Dummy Axes: tth, th, chi, phi and rpenergy"
    tth = DummyPD('tth')
    tth.setLowerGdaLimits(-80)
    tth.setUpperGdaLimits(260)
    th = DummyPD('th')
    th.setLowerGdaLimits(-100)
    th.setUpperGdaLimits(190)
    chi = DummyPD('chi')
    chi.setLowerGdaLimits(86)
    chi.setUpperGdaLimits(94)
    phi = DummyPD('phi')
    rpenergy = DummyPD('rpenergy')
    rpenergy.moveTo(12398.42)
    print "Moved rpenergy to 12398.42 eV (1 Angstrom)"
    chi.moveTo(90)
    print "Moved chi to 90"
    print "=" * 80

diffcalcObjects = create_objects(