Skip to content

Commit 4982192

Browse files
committed
updated docs and scripts
Updated docs Changed tkgui.properties.XrayInteractionsGUI to run independantly. Added cli arguments to run xray properties gui and fdmnes gui.
1 parent f9c1a22 commit 4982192

18 files changed

Lines changed: 1634 additions & 192 deletions

Dans_Diffraction/__init__.py

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,14 @@ def doc_str():
208208
# tkGUI Activation
209209
def start_gui(xtl=None):
210210
"""Start GUI window (requires tkinter)"""
211-
try:
212-
from .tkgui import CrystalGui
213-
CrystalGui(xtl)
214-
except ImportError:
215-
print('GUI functionality not available, you need to install tkinter.')
211+
from .tkgui import CrystalGui
212+
CrystalGui(xtl)
213+
214+
215+
def start_properties_gui():
216+
"""Start XRay Interactions GUI"""
217+
from .tkgui.properties import XrayInteractionsGui
218+
XrayInteractionsGui()
216219

217220

218221
# FDMNES Activation
@@ -224,3 +227,9 @@ def activate_fdmnes(initial_dir=None, fdmnes_filename='fdmnes_win64.exe'):
224227
:return: None
225228
"""
226229
fdmnes_checker(activate=True, fdmnes_filename=fdmnes_filename, initial_dir=initial_dir)
230+
231+
232+
def start_fdmnes_gui():
233+
"""Start GUI for FDMNES"""
234+
from .tkgui.fdmnes import AnaFDMNESgui
235+
AnaFDMNESgui()

Dans_Diffraction/__main__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,10 @@
3737
print(xtl.info())
3838
elif 'gui' in arg.lower():
3939
xtl.start_gui()
40+
elif 'properties' in arg.lower():
41+
from Dans_Diffraction.tkgui.properties import XrayInteractionsGui
42+
XrayInteractionsGui()
43+
elif 'fdmnes' in arg.lower():
44+
from Dans_Diffraction.tkgui.fdmnes import AnaFDMNESgui
45+
AnaFDMNESgui()
4046

Dans_Diffraction/tkgui/basic_widgets.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,14 @@ def topmenu(root, menu_dict):
105105
# Setup menubar
106106
menubar = tk.Menu(root)
107107

108-
for item in menu_dict:
109-
men = tk.Menu(menubar, tearoff=0)
110-
for label, function in menu_dict[item].items():
111-
men.add_command(label=label, command=function)
112-
menubar.add_cascade(label=item, menu=men)
108+
for item, obj in menu_dict.items():
109+
if isinstance(obj, dict):
110+
men = tk.Menu(menubar, tearoff=0)
111+
for label, function in obj.items():
112+
men.add_command(label=label, command=function)
113+
menubar.add_cascade(label=item, menu=men)
114+
else:
115+
menubar.add_command(label=item,command=obj)
113116
root.config(menu=menubar)
114117

115118

Dans_Diffraction/tkgui/properties.py

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from .. import functions_general as fg
99
from .. import functions_crystallography as fc
1010
from .. import functions_plotting as fp
11-
from .basic_widgets import tk, StringViewer, SelectionBox, messagebox
11+
from .basic_widgets import tk, StringViewer, SelectionBox, messagebox, topmenu
1212
from .basic_widgets import (TF, BF, SF, LF, HF,
1313
bkg, ety, btn, opt, btn2,
1414
btn_active, opt_active, txtcol,
@@ -312,9 +312,8 @@ class XrayInteractionsGui:
312312
Calculate X-Ray interactions with Matter
313313
"""
314314

315-
def __init__(self, xtl):
315+
def __init__(self, xtl=None):
316316
"""Initialise"""
317-
self.xtl = xtl
318317
# Create Tk inter instance
319318
self.root = tk.Tk()
320319
self.root.wm_title('X-Ray Interactions with Matter')
@@ -330,9 +329,9 @@ def __init__(self, xtl):
330329
frame.pack(side=tk.LEFT, anchor=tk.N)
331330

332331
# Crystal info
333-
name = xtl.name
334-
formula = xtl.Properties.molname()
335-
density = round(xtl.Properties.density(), 3)
332+
name = xtl.name if xtl else 'Fe'
333+
formula = xtl.Properties.molname() if xtl else 'Fe'
334+
density = round(xtl.Properties.density(), 3) if xtl else 92.735
336335

337336
# Variables
338337
self.chem_formula = tk.StringVar(frame, formula)
@@ -364,6 +363,14 @@ def __init__(self, xtl):
364363
'Wavelength (nm)': 'nm'
365364
}
366365

366+
# ---Menu---
367+
menu = {
368+
'Periodic Table': self.menu_info_table,
369+
'Unit Converter': self.menu_converter,
370+
'About': self.menu_about,
371+
}
372+
topmenu(self.root, menu)
373+
367374
# ---Line 0---
368375
line = tk.Frame(frame)
369376
line.pack(side=tk.TOP, expand=tk.TRUE, fill=tk.X, pady=5)
@@ -460,6 +467,20 @@ def __init__(self, xtl):
460467
activebackground=btn_active)
461468
var.pack(side=tk.LEFT)
462469

470+
def menu_info_table(self):
471+
from .periodic_table import PeriodTableGui
472+
PeriodTableGui()
473+
474+
def menu_converter(self):
475+
"""Open unit converter"""
476+
from .converter import UnitConverter
477+
UnitConverter()
478+
479+
def menu_about(self):
480+
about = "Xray Interactions with Matter\nBy Dan Porter 2025\n\n"
481+
about += "Inspired by CXRO: https://henke.lbl.gov/optical_constants/\n\n"
482+
messagebox.showinfo('X-Ray Interactions with Matter', about)
483+
463484
def get_scan(self):
464485
scan_type = self.scan_type.get()
465486
scan_min = self.scan_min.get()

docs/Dans_Diffraction.classes_crystal.html

Lines changed: 36 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
77
<tr bgcolor="#7799ee">
88
<td valign=bottom>&nbsp;<br>
9-
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="Dans_Diffraction.html"><font color="#ffffff">Dans_Diffraction</font></a>.classes_crystal</strong></big></big> (version 3.2.4)</font></td
9+
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="Dans_Diffraction.html"><font color="#ffffff">Dans_Diffraction</font></a>.classes_crystal</strong></big></big> (version 3.3.0)</font></td
1010
><td align=right valign=bottom
1111
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:c%3A%5Cusers%5Cgrp66007%5Conedrive%20-%20diamond%20light%20source%20ltd%5Cpythonprojects%5Cdans_diffraction%5Cdans_diffraction%5Cclasses_crystal.py">c:\users\grp66007\onedrive - diamond light source ltd\pythonprojects\dans_diffraction\dans_diffraction\classes_crystal.py</a></font></td></tr></table>
1212
<p><tt>classes_crystal.py<br>
@@ -34,8 +34,8 @@
3434
Diamond<br>
3535
2017<br>
3636
&nbsp;<br>
37-
Version&nbsp;3.2.4<br>
38-
Last&nbsp;updated:&nbsp;22/05/23<br>
37+
Version&nbsp;3.3.0<br>
38+
Last&nbsp;updated:&nbsp;06/02/25<br>
3939
&nbsp;<br>
4040
Version&nbsp;History:<br>
4141
27/07/17&nbsp;1.0&nbsp;&nbsp;&nbsp;&nbsp;Version&nbsp;History&nbsp;started.<br>
@@ -59,6 +59,7 @@
5959
15/11/21&nbsp;3.2.2&nbsp;&nbsp;Added&nbsp;<a href="#Cell">Cell</a>.orientation,&nbsp;updated&nbsp;<a href="#Cell">Cell</a>.UV()<br>
6060
12/01/21&nbsp;3.2.3&nbsp;&nbsp;Added&nbsp;<a href="#Symmetry">Symmetry</a>.axial_vector<br>
6161
22/05/23&nbsp;3.2.4&nbsp;&nbsp;Added&nbsp;<a href="#Symmetry">Symmetry</a>.wyckoff_label(),&nbsp;<a href="#Symmetry">Symmetry</a>.spacegroup_dict<br>
62+
06/05/25&nbsp;3.3.0&nbsp;&nbsp;<a href="#Symmetry">Symmetry</a>.from_cif&nbsp;now&nbsp;loads&nbsp;operations&nbsp;from&nbsp;find_spacegroup&nbsp;if&nbsp;not&nbsp;already&nbsp;loaded<br>
6263
&nbsp;<br>
6364
@author:&nbsp;DGPorter</tt></p>
6465
<p>
@@ -70,8 +71,9 @@
7071
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
7172
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="Dans_Diffraction.functions_crystallography.html">Dans_Diffraction.functions_crystallography</a><br>
7273
</td><td width="25%" valign=top><a href="Dans_Diffraction.functions_general.html">Dans_Diffraction.functions_general</a><br>
74+
</td><td width="25%" valign=top><a href="Dans_Diffraction.functions_lattice.html">Dans_Diffraction.functions_lattice</a><br>
7375
</td><td width="25%" valign=top><a href="numpy.html">numpy</a><br>
74-
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
76+
</td></tr></table></td></tr></table><p>
7577
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
7678
<tr bgcolor="#ee77aa">
7779
<td colspan=3 valign=bottom>&nbsp;<br>
@@ -293,7 +295,7 @@
293295
<dl><dt><a name="Cell-Bmatrix"><strong>Bmatrix</strong></a>(self)</dt><dd><tt>Calculate&nbsp;the&nbsp;Busing&nbsp;and&nbsp;Levy&nbsp;B&nbsp;matrix&nbsp;from&nbsp;a&nbsp;real&nbsp;space&nbsp;UV<br>
294296
&nbsp;"choose&nbsp;the&nbsp;x-axis&nbsp;parallel&nbsp;to&nbsp;a*,&nbsp;the&nbsp;y-axis&nbsp;in&nbsp;the&nbsp;plane&nbsp;of&nbsp;a*&nbsp;and&nbsp;b*,&nbsp;and&nbsp;the&nbsp;z-axis&nbsp;perpendicular&nbsp;to<br>
295297
&nbsp;that&nbsp;plane"<br>
296-
&nbsp;W.&nbsp;R.&nbsp;Busing&nbsp;&amp;&nbsp;H.&nbsp;A.&nbsp;Levy,&nbsp;Acta&nbsp;&nbsp;Cryst.&nbsp;&nbsp;(1967).&nbsp;22,&nbsp;&nbsp;457</tt></dd></dl>
298+
W.&nbsp;R.&nbsp;Busing&nbsp;&amp;&nbsp;H.&nbsp;A.&nbsp;Levy,&nbsp;Acta&nbsp;&nbsp;Cryst.&nbsp;&nbsp;(1967).&nbsp;22,&nbsp;&nbsp;457</tt></dd></dl>
297299

298300
<dl><dt><a name="Cell-Qmag"><strong>Qmag</strong></a>(self, HKL)</dt><dd><tt>Returns&nbsp;the&nbsp;magnitude&nbsp;of&nbsp;wave-vector&nbsp;transfer&nbsp;of&nbsp;[h,k,l],&nbsp;in&nbsp;A-1<br>
299301
:param&nbsp;HKL:&nbsp;list&nbsp;of&nbsp;hkl&nbsp;reflections<br>
@@ -334,11 +336,17 @@
334336
<dl><dt><a name="Cell-calculateR"><strong>calculateR</strong></a>(self, UVW)</dt><dd><tt>Convert&nbsp;coordinates&nbsp;[u,v,w],&nbsp;in&nbsp;the&nbsp;basis&nbsp;of&nbsp;the&nbsp;unit&nbsp;cell,&nbsp;to<br>
335337
coordinates&nbsp;[x,y,z],&nbsp;in&nbsp;an&nbsp;orthogonal&nbsp;basis,&nbsp;in&nbsp;units&nbsp;of&nbsp;A<br>
336338
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;R(x,y,z)&nbsp;=&nbsp;uA&nbsp;+&nbsp;vB&nbsp;+&nbsp;wC<br>
337-
&nbsp;<br>
338339
E.G.<br>
339340
&nbsp;&nbsp;&nbsp;&nbsp;R&nbsp;=&nbsp;<a href="#Cell">Cell</a>.<a href="#Cell-calculateR">calculateR</a>([0.1,0,0])&nbsp;#&nbsp;for&nbsp;a&nbsp;hexagonal&nbsp;system,&nbsp;a&nbsp;=&nbsp;2.85<br>
340341
&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;R&nbsp;=&nbsp;array([[0.285,&nbsp;0,&nbsp;0]])</tt></dd></dl>
341342

343+
<dl><dt><a name="Cell-choose_basis"><strong>choose_basis</strong></a>(self, option='default')</dt><dd><tt>Choose&nbsp;the&nbsp;basis&nbsp;function<br>
344+
Options:<br>
345+
&nbsp;&nbsp;&nbsp;&nbsp;1.&nbsp;c&nbsp;||&nbsp;z,&nbsp;b*&nbsp;||&nbsp;y&nbsp;-&nbsp;basis&nbsp;choice&nbsp;of&nbsp;Materials&nbsp;Project<br>
346+
&nbsp;&nbsp;&nbsp;&nbsp;2.&nbsp;a&nbsp;||&nbsp;x,&nbsp;c*&nbsp;||&nbsp;z&nbsp;-&nbsp;basis&nbsp;choice&nbsp;of&nbsp;Vesta<br>
347+
&nbsp;&nbsp;&nbsp;&nbsp;3.&nbsp;c&nbsp;||&nbsp;z,&nbsp;a*&nbsp;||&nbsp;x&nbsp;-&nbsp;basis&nbsp;choice&nbsp;of&nbsp;Busing&nbsp;&amp;&nbsp;Levy&nbsp;(Default)<br>
348+
:param&nbsp;option:&nbsp;name&nbsp;or&nbsp;number&nbsp;of&nbsp;basis</tt></dd></dl>
349+
342350
<dl><dt><a name="Cell-diff6circle"><strong>diff6circle</strong></a>(self, delta=0, gamma=0, energy_kev=None, wavelength=1.0)</dt><dd><tt>Calcualte&nbsp;wavevector&nbsp;in&nbsp;diffractometer&nbsp;axis&nbsp;using&nbsp;detector&nbsp;angles<br>
343351
:param&nbsp;delta:&nbsp;float&nbsp;angle&nbsp;in&nbsp;degrees&nbsp;in&nbsp;vertical&nbsp;direction&nbsp;(about&nbsp;diff-z)<br>
344352
:param&nbsp;gamma:&nbsp;float&nbsp;angle&nbsp;in&nbsp;degrees&nbsp;in&nbsp;horizontal&nbsp;direction&nbsp;(about&nbsp;diff-x)<br>
@@ -420,7 +428,7 @@
420428
:param&nbsp;hkl:&nbsp;[3xn]&nbsp;array&nbsp;of&nbsp;(h,&nbsp;k,&nbsp;l)&nbsp;reciprocal&nbsp;lattice&nbsp;vectors<br>
421429
:return:&nbsp;[3xn]&nbsp;array&nbsp;of&nbsp;Q&nbsp;vectors&nbsp;in&nbsp;the&nbsp;lab&nbsp;coordinate&nbsp;system</tt></dd></dl>
422430

423-
<dl><dt><a name="Cell-latt"><strong>latt</strong></a>(self, lattice_parameters=(), *args, **kwargs)</dt><dd><tt>Generate&nbsp;lattice&nbsp;parameters&nbsp;with&nbsp;list<br>
431+
<dl><dt><a name="Cell-latt"><strong>latt</strong></a>(self, *lattice_parameters, **kwargs)</dt><dd><tt>Generate&nbsp;lattice&nbsp;parameters&nbsp;with&nbsp;list<br>
424432
&nbsp;&nbsp;<a href="#Cell-latt">latt</a>(1)&nbsp;-&gt;&nbsp;a=b=c=1,alpha=beta=gamma=90<br>
425433
&nbsp;&nbsp;<a href="#Cell-latt">latt</a>([1,2,3])&nbsp;-&gt;&nbsp;a=1,b=2,c=3,alpha=beta=gamma=90<br>
426434
&nbsp;&nbsp;<a href="#Cell-latt">latt</a>([1,2,3,120])&nbsp;-&gt;&nbsp;a=1,b=2,c=3,alpha=beta=90,gamma=120<br>
@@ -444,7 +452,7 @@
444452
:param&nbsp;hkl:&nbsp;array&nbsp;:&nbsp;list&nbsp;of&nbsp;reflections<br>
445453
:return:&nbsp;correction</tt></dd></dl>
446454

447-
<dl><dt><a name="Cell-reciprocal_space_plane"><strong>reciprocal_space_plane</strong></a>(self, x_axis=[1, 0, 0], y_axis=[0, 1, 0], centre=[0, 0, 0], q_max=4.0, cut_width=0.05)</dt><dd><tt>Returns&nbsp;positions&nbsp;within&nbsp;a&nbsp;reciprocal&nbsp;space&nbsp;plane<br>
455+
<dl><dt><a name="Cell-reciprocal_space_plane"><strong>reciprocal_space_plane</strong></a>(self, x_axis=(1, 0, 0), y_axis=(0, 1, 0), centre=(0, 0, 0), q_max=4.0, cut_width=0.05)</dt><dd><tt>Returns&nbsp;positions&nbsp;within&nbsp;a&nbsp;reciprocal&nbsp;space&nbsp;plane<br>
448456
&nbsp;&nbsp;x_axis&nbsp;=&nbsp;direction&nbsp;along&nbsp;x,&nbsp;in&nbsp;units&nbsp;of&nbsp;the&nbsp;reciprocal&nbsp;lattice&nbsp;(hkl)<br>
449457
&nbsp;&nbsp;y_axis&nbsp;=&nbsp;direction&nbsp;along&nbsp;y,&nbsp;in&nbsp;units&nbsp;of&nbsp;the&nbsp;reciprocal&nbsp;lattice&nbsp;(hkl)<br>
450458
&nbsp;&nbsp;centre&nbsp;=&nbsp;centre&nbsp;of&nbsp;the&nbsp;plot,&nbsp;in&nbsp;units&nbsp;of&nbsp;the&nbsp;reciprocal&nbsp;lattice&nbsp;(hkl)<br>
@@ -607,10 +615,19 @@
607615
:param&nbsp;mxmymz:&nbsp;array&nbsp;:&nbsp;atomic&nbsp;magnetic&nbsp;vectors&nbsp;[mu,mv,mw]<br>
608616
:return:&nbsp;None</tt></dd></dl>
609617

610-
<dl><dt><a name="Crystal-new_cell"><strong>new_cell</strong></a>(self, lattice_parameters=(), *args, **kwargs)</dt><dd><tt>Replace&nbsp;the&nbsp;lattice&nbsp;parameters<br>
618+
<dl><dt><a name="Crystal-new_cell"><strong>new_cell</strong></a>(self, *lattice_parameters, **kwargs)</dt><dd><tt>Replace&nbsp;the&nbsp;lattice&nbsp;parameters<br>
611619
:param&nbsp;lattice_parameters:&nbsp;[a,b,c,alpha,beta,gamma]<br>
612620
:return:&nbsp;None</tt></dd></dl>
613621

622+
<dl><dt><a name="Crystal-search_distances"><strong>search_distances</strong></a>(self, min_d=0.65, max_d=3.2, c_ele=None, elems=None, labels=None, simple=True)</dt><dd><tt>Calculated&nbsp;atoms&nbsp;interatomic&nbsp;distances&nbsp;form&nbsp;each&nbsp;label.<br>
623+
:param&nbsp;c_ele&nbsp;(list,string):&nbsp;only&nbsp;sites&nbsp;with&nbsp;noted&nbsp;elements<br>
624+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;None&nbsp;all&nbsp;site<br>
625+
:param&nbsp;elems&nbsp;(list,string):&nbsp;only&nbsp;distances&nbsp;with&nbsp;noted&nbsp;elements<br>
626+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;None&nbsp;all&nbsp;site<br>
627+
:param&nbsp;min_d:&nbsp;minimum&nbsp;distance&nbsp;<br>
628+
:param&nbsp;max_d:&nbsp;maximum&nbsp;distance<br>
629+
:return&nbsp;dictionary:</tt></dd></dl>
630+
614631
<dl><dt><a name="Crystal-start_gui"><strong>start_gui</strong></a>(self)</dt><dd><tt>Start&nbsp;<a href="#Crystal">Crystal</a>&nbsp;GUI<br>
615632
:return:&nbsp;None</tt></dd></dl>
616633

@@ -799,10 +816,19 @@
799816
:param&nbsp;mxmymz:&nbsp;array&nbsp;:&nbsp;atomic&nbsp;magnetic&nbsp;vectors&nbsp;[mu,mv,mw]<br>
800817
:return:&nbsp;None</tt></dd></dl>
801818

802-
<dl><dt><a name="Superstructure-new_cell"><strong>new_cell</strong></a>(self, lattice_parameters=(), *args, **kwargs)</dt><dd><tt>Replace&nbsp;the&nbsp;lattice&nbsp;parameters<br>
819+
<dl><dt><a name="Superstructure-new_cell"><strong>new_cell</strong></a>(self, *lattice_parameters, **kwargs)</dt><dd><tt>Replace&nbsp;the&nbsp;lattice&nbsp;parameters<br>
803820
:param&nbsp;lattice_parameters:&nbsp;[a,b,c,alpha,beta,gamma]<br>
804821
:return:&nbsp;None</tt></dd></dl>
805822

823+
<dl><dt><a name="Superstructure-search_distances"><strong>search_distances</strong></a>(self, min_d=0.65, max_d=3.2, c_ele=None, elems=None, labels=None, simple=True)</dt><dd><tt>Calculated&nbsp;atoms&nbsp;interatomic&nbsp;distances&nbsp;form&nbsp;each&nbsp;label.<br>
824+
:param&nbsp;c_ele&nbsp;(list,string):&nbsp;only&nbsp;sites&nbsp;with&nbsp;noted&nbsp;elements<br>
825+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;None&nbsp;all&nbsp;site<br>
826+
:param&nbsp;elems&nbsp;(list,string):&nbsp;only&nbsp;distances&nbsp;with&nbsp;noted&nbsp;elements<br>
827+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;None&nbsp;all&nbsp;site<br>
828+
:param&nbsp;min_d:&nbsp;minimum&nbsp;distance&nbsp;<br>
829+
:param&nbsp;max_d:&nbsp;maximum&nbsp;distance<br>
830+
:return&nbsp;dictionary:</tt></dd></dl>
831+
806832
<dl><dt><a name="Superstructure-start_gui"><strong>start_gui</strong></a>(self)</dt><dd><tt>Start&nbsp;<a href="#Crystal">Crystal</a>&nbsp;GUI<br>
807833
:return:&nbsp;None</tt></dd></dl>
808834

docs/Dans_Diffraction.classes_orientation.html

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,8 @@
3131

3232
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
3333
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="Dans_Diffraction.functions_crystallography.html">Dans_Diffraction.functions_crystallography</a><br>
34-
<a href="Dans_Diffraction.functions_general.html">Dans_Diffraction.functions_general</a><br>
34+
</td><td width="25%" valign=top><a href="Dans_Diffraction.functions_lattice.html">Dans_Diffraction.functions_lattice</a><br>
3535
</td><td width="25%" valign=top><a href="numpy.html">numpy</a><br>
36-
<a href="os.html">os</a><br>
37-
</td><td width="25%" valign=top><a href="re.html">re</a><br>
38-
<a href="sys.html">sys</a><br>
3936
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
4037
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
4138
<tr bgcolor="#ee77aa">
@@ -59,7 +56,7 @@
5956
<font color="#000000" face="helvetica, arial"><a name="CrystalOrientation">class <strong>CrystalOrientation</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr>
6057

6158
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
62-
<td colspan=2><tt><a href="#CrystalOrientation">CrystalOrientation</a>(lattice_parameters=(),&nbsp;*args,&nbsp;**kwargs)<br>
59+
<td colspan=2><tt><a href="#CrystalOrientation">CrystalOrientation</a>(*lattice_parameters,&nbsp;**kwargs)<br>
6360
&nbsp;<br>
6461
<a href="#CrystalOrientation">CrystalOrientation</a>&nbsp;Class<br>
6562
&nbsp;<br>
@@ -70,7 +67,7 @@
7067
&nbsp;&nbsp;y-axis&nbsp;:&nbsp;vector&nbsp;normal&nbsp;to&nbsp;x,z&nbsp;axes&nbsp;(parallel&nbsp;to&nbsp;beam&nbsp;(+z)&nbsp;in&nbsp;lab&nbsp;frame)<br>&nbsp;</tt></td></tr>
7168
<tr><td>&nbsp;</td>
7269
<td width="100%">Methods defined here:<br>
73-
<dl><dt><a name="CrystalOrientation-__init__"><strong>__init__</strong></a>(self, lattice_parameters=(), *args, **kwargs)</dt><dd><tt>Initialize&nbsp;self.&nbsp;&nbsp;See&nbsp;help(type(self))&nbsp;for&nbsp;accurate&nbsp;signature.</tt></dd></dl>
70+
<dl><dt><a name="CrystalOrientation-__init__"><strong>__init__</strong></a>(self, *lattice_parameters, **kwargs)</dt><dd><tt>Initialize&nbsp;self.&nbsp;&nbsp;See&nbsp;help(type(self))&nbsp;for&nbsp;accurate&nbsp;signature.</tt></dd></dl>
7471

7572
<dl><dt><a name="CrystalOrientation-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Return&nbsp;repr(self).</tt></dd></dl>
7673

@@ -195,6 +192,5 @@
195192
<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
196193
<td width="100%"><dl><dt><a name="-string_matrix"><strong>string_matrix</strong></a>(m)</dt><dd><tt>Convert&nbsp;[3*3]&nbsp;array&nbsp;to&nbsp;string</tt></dd></dl>
197194
<dl><dt><a name="-string_vector"><strong>string_vector</strong></a>(v)</dt><dd><tt>Convert&nbsp;[3]&nbsp;array&nbsp;to&nbsp;string</tt></dd></dl>
198-
<dl><dt><a name="-warn"><strong>warn</strong></a>(message, category=None, stacklevel=1, source=None)</dt><dd><tt>Issue&nbsp;a&nbsp;warning,&nbsp;or&nbsp;maybe&nbsp;ignore&nbsp;it&nbsp;or&nbsp;raise&nbsp;an&nbsp;exception.</tt></dd></dl>
199195
</td></tr></table>
200196
</body></html>

0 commit comments

Comments
 (0)