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', hklverbose_virtual_angles_to_report=('2theta','Bin','Bout','azimuth'), demo_commands = demoCommands ) diffcalcObjects['alpha_par'] = diffcalcObjects['alpha'] del diffcalcObjects['alpha']
#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', hklverbose_virtual_angles_to_report=('2theta', 'Bin', 'Bout', 'azimuth'), demo_commands=demoCommands) """See http://jira.diamond.ac.uk/browse/BLX-58 phi and alpha cause problems with "Exception: Did not add diffcalc objects/method to namespace, as doing so would overwrite the object phi" """