Dans_Diffraction.tkgui.scattering
index
c:\users\grp66007\onedrive - diamond light source ltd\pythonprojects\dans_diffraction\dans_diffraction\tkgui\scattering.py

Scattering GUI

 
Modules
       
Dans_Diffraction.functions_crystallography
Dans_Diffraction.functions_general
tkinter.messagebox
numpy
os
matplotlib.pyplot
re
sys
tkinter

 
Classes
       
builtins.object
ArbitaryCutGui
ReflectionSelectionBox
ResonantXrayGui
ScatteringGui
ScatteringGuiOLD

 
class ArbitaryCutGui(builtins.object)
    ArbitaryCutGui(xtl)
 
Simulate scattering of various forms
 
  Methods defined here:
__init__(self, xtl)
Initialise
fun_3dlattice(self)
Button plot 3D lattice
fun_clim(self, event=None)
Update clim
fun_envelope(self)
Run code
fun_ewald(self)
Button plot ewald coverage
fun_generate(self)
Run code

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class ReflectionSelectionBox(builtins.object)
    ReflectionSelectionBox(xtl, parent, title='Reflections', multiselect=True, radiation=None, wavelength_a=None)
 
Displays all data fields and returns a selection
Making a selection returns a list of field strings
 
out = ReflectionSelectionBox(['field1','field2','field3'], current_selection=['field2'], title='', multiselect=False).show()
# Make selection and press "Select" > box disappears
out = ['list','of','strings']
 
  Methods defined here:
__init__(self, xtl, parent, title='Reflections', multiselect=True, radiation=None, wavelength_a=None)
Initialize self.  See help(type(self)) for accurate signature.
add_reflection(self, hkl)
Add reflection to list
add_reflection_list(self, hkl_list)
Replace reflection list
clear_reflections(self)
Clear reflection list
f_exit(self, event=None)
Closes the current data window
fun_add_hkl(self, event=None)
Add additional hkl
fun_edge(self, event=None)
X-ray edge option menu
fun_exitbutton(self, event=None)
Closes the current data window and generates output
fun_gen_refs(self)
Generate reflections
fun_gen_sym_refs(self)
fun_listboxselect(self, event=None)
Update label on listbox selection
fun_radiation(self, event=None)
Set radiation
fun_rem_sym_refs(self)
fun_search(self, event=None)
Search the selection for string
fun_wavelength(self, event=None)
Convert previous unit
get_max_q(self, event=None)
Return max val in inverse angstroms, convert if changed
get_scattering_type(self)
Get scattering type
get_wavelength(self)
Return wavelength in A according to unit
help_max_q(self)
set_wavelength(self, wavelength_a)
set wavelength according to unit
show(self)
Run the selection box, wait for response

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
REF_FMT = '%14s %8.2f %12.4g'

 
class ResonantXrayGui(builtins.object)
    ResonantXrayGui(parent: Dans_Diffraction.tkgui.scattering.ScatteringGui)
 
Simulate scattering of various forms
 
  Methods defined here:
__init__(self, parent: Dans_Diffraction.tkgui.scattering.ScatteringGui)
Initialize self.  See help(type(self)) for accurate signature.
fun_azimuth(self)
Simulate azimuthal magnetic scattering
fun_dispersion(self)
Simulate energy resonance
fun_edge(self, event=None)
X-ray edge option menu
fun_energy(self, event=None)
Set wavelength
fun_fdmnes_ref(self)
Run FDMNES calculation
fun_hklmag(self, event=None)
"Magnetic scattering
fun_hklmag_list(self, event=None)
"Magnetic scattering
fun_wavelength(self, event=None)
Set energy

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class ScatteringGui(builtins.object)
    ScatteringGui(xtl)
 
Simulate scattering of various forms
 
  Methods defined here:
__init__(self, xtl)
Initialise
fun_clim(self, event=None)
Update clim
fun_closerefs(self)
fun_cut(self)
fun_edge(self, event=None)
X-ray edge option menu
fun_energy(self, event=None)
Set wavelength
fun_get(self)
Set crytal parameters from gui
fun_get_hkl(self)
Get quick check hkl
fun_hhi(self)
Plot hhl plane
fun_hil(self)
Plot hil plane
fun_hki(self)
Plot hki plane
fun_hklatom(self)
Print atomic contributions
fun_hklcheck(self, event=None)
"Show single hkl intensity
fun_hklsym(self)
Print symmetric reflections
fun_hklsymmetry(self)
Print symmetry contributions
fun_i16(self)
"Add I16 parameters
fun_ikl(self)
Plot ikl plane
fun_intensities(self)
Display intensities
fun_powder(self)
Plot Powder
fun_radiation(self, event=None)
Set radiation
fun_rxs(self)
fun_set(self)
"Set gui parameters from crystal
fun_supernova(self)
Add SuperNova parameters
fun_wavelength(self, event=None)
Set energy
fun_wish(self)
"Add Wish parameters
get_energy(self)
Return energy in keV according to unit
get_wavelength(self)
Return wavelength in A according to unit
menu_info_crystal(self)
Crystal info
menu_info_scattering(self)
Scattering info
set_energy(self, energy_kev)
set energy according to unit
set_wavelength(self, wavelength_a)
set wavelength according to unit

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class ScatteringGuiOLD(builtins.object)
    ScatteringGuiOLD(xtl)
 
Simulate scattering of various forms
 
  Methods defined here:
__init__(self, xtl)
Initialise
fun_closerefs(self)
fun_cut(self)
fun_edge(self, event=None)
X-ray edge option menu
fun_energy(self, event=None)
Set wavelength
fun_get(self)
Set crytal parameters from gui
fun_get_hkl(self)
Get quick check hkl
fun_hhi(self)
Plot hhl plane
fun_hil(self)
Plot hil plane
fun_hki(self)
Plot hki plane
fun_hklatom(self)
Print atomic contributions
fun_hklcheck(self, event=None)
"Show single hkl intensity
fun_hklsym(self)
Print symmetric reflections
fun_hklsymmetry(self)
Print symmetry contributions
fun_i16(self)
"Add I16 parameters
fun_ikl(self)
Plot ikl plane
fun_intensities(self)
Display intensities
fun_powder(self)
Plot Powder
fun_rxs(self)
fun_set(self)
"Set gui parameters from crystal
fun_supernova(self)
Add SuperNova parameters
fun_wavelength(self, event=None)
Set energy
fun_wish(self)
"Add Wish parameters
menu_info_crystal(self)
Crystal info
menu_info_scattering(self)
Scattering info

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Data
        BF = ['Palatino', 14]
HF = ['Courier', 12]
LF = ['Palatino', 14]
MF = ['Courier', 8]
SF = ['Palatino', 14]
TF = ['Palatino', 12]
bkg = 'snow'
btn = 'azure'
btn2 = 'gold'
btn_active = 'grey'
btn_txt = 'black'
ety = 'white'
ety_txt = 'black'
opt = 'azure'
opt_active = 'grey'
opt_txt = 'black'
txtcol = 'black'