larixite 2024.10.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. larixite-2024.10.0/.gitignore +50 -0
  2. larixite-2024.10.0/LICENSE +22 -0
  3. larixite-2024.10.0/PKG-INFO +112 -0
  4. larixite-2024.10.0/README.md +53 -0
  5. larixite-2024.10.0/doc/Makefile +53 -0
  6. larixite-2024.10.0/doc/_static/empty +1 -0
  7. larixite-2024.10.0/doc/_templates/indexsidebar.html +8 -0
  8. larixite-2024.10.0/doc/conf.py +202 -0
  9. larixite-2024.10.0/doc/index.rst +60 -0
  10. larixite-2024.10.0/larixite/__init__.py +3 -0
  11. larixite-2024.10.0/larixite/amcsd.py +1333 -0
  12. larixite-2024.10.0/larixite/amcsd_cif1.db +0 -0
  13. larixite-2024.10.0/larixite/amcsd_utils.py +207 -0
  14. larixite-2024.10.0/larixite/cif_cluster.py +396 -0
  15. larixite-2024.10.0/larixite/gformat.py +99 -0
  16. larixite-2024.10.0/larixite/physical_constants.py +55 -0
  17. larixite-2024.10.0/larixite/templates/fdmnes.tmpl +37 -0
  18. larixite-2024.10.0/larixite/templates/feff_exafs.tmpl +43 -0
  19. larixite-2024.10.0/larixite/utils.py +55 -0
  20. larixite-2024.10.0/larixite/version.py +16 -0
  21. larixite-2024.10.0/larixite/webapp/__init__.py +1 -0
  22. larixite-2024.10.0/larixite/webapp/static/ixas_logo.ico +0 -0
  23. larixite-2024.10.0/larixite/webapp/static/style.css +114 -0
  24. larixite-2024.10.0/larixite/webapp/templates/about.html +54 -0
  25. larixite-2024.10.0/larixite/webapp/templates/index.html +161 -0
  26. larixite-2024.10.0/larixite/webapp/templates/layout.html +22 -0
  27. larixite-2024.10.0/larixite/webapp/templates/upload.html +18 -0
  28. larixite-2024.10.0/larixite/webapp/webapp.py +285 -0
  29. larixite-2024.10.0/larixite/xrd_utils.py +154 -0
  30. larixite-2024.10.0/larixite.egg-info/PKG-INFO +112 -0
  31. larixite-2024.10.0/larixite.egg-info/SOURCES.txt +37 -0
  32. larixite-2024.10.0/larixite.egg-info/dependency_links.txt +1 -0
  33. larixite-2024.10.0/larixite.egg-info/requires.txt +20 -0
  34. larixite-2024.10.0/larixite.egg-info/top_level.txt +1 -0
  35. larixite-2024.10.0/pyproject.toml +53 -0
  36. larixite-2024.10.0/run_local.py +5 -0
  37. larixite-2024.10.0/setup.cfg +4 -0
  38. larixite-2024.10.0/setup.py +4 -0
  39. larixite-2024.10.0/tests/test_cif2feffinp.py +23 -0
@@ -0,0 +1,50 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ larixite/version.py
7
+
8
+ *.so
9
+
10
+ # Distribution / packaging
11
+ .Python
12
+ build/
13
+ develop-eggs/
14
+ dist/
15
+ downloads/
16
+ eggs/
17
+ .eggs/
18
+ lib/
19
+ lib64/
20
+ parts/
21
+ sdist/
22
+ var/
23
+ wheels/
24
+ share/python-wheels/
25
+ *.egg-info/
26
+ .installed.cfg
27
+ *.egg
28
+ MANIFEST
29
+
30
+
31
+ # Unit test / coverage reports
32
+ htmlcov/
33
+ .tox/
34
+ .nox/
35
+ .coverage
36
+ .coverage.*
37
+ .cache
38
+ nosetests.xml
39
+ coverage.xml
40
+ *.cover
41
+ *.py,cover
42
+ .hypothesis/
43
+ .pytest_cache/
44
+ cover/
45
+
46
+ # Sphinx documentation
47
+ docs/_build/
48
+
49
+ # Jupyter Notebook
50
+ .ipynb_checkpoints
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Matthew Newville, The University of Chicago,
4
+ Mauro Rovezzi, University Grenoble Alpes, CNRS
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
@@ -0,0 +1,112 @@
1
+ Metadata-Version: 2.1
2
+ Name: larixite
3
+ Version: 2024.10.0
4
+ Summary: convert CIF data to inputs for XAS calculations Feff, FDMNES, etc
5
+ Author-email: Matthew Newville <newville@cars.uchicago.edu>, Mauro Rovezzi <mauro.rovezzi@esrf.fr>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2024 Matthew Newville, The University of Chicago,
9
+ Mauro Rovezzi, University Grenoble Alpes, CNRS
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the "Software"), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in all
19
+ copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ SOFTWARE.
28
+
29
+ Project-URL: Homepage, https://github.com/xraypy/larixite
30
+ Project-URL: Documentation, https://xraypy.github.io/larixite
31
+ Project-URL: Tracker, https://github.com/xraypy/larixite/issues
32
+ Keywords: X-ray spectroscopy,Crystallography
33
+ Classifier: Development Status :: 5 - Production/Stable
34
+ Classifier: Intended Audience :: Developers
35
+ Classifier: License :: OSI Approved :: MIT License
36
+ Classifier: Operating System :: OS Independent
37
+ Classifier: Programming Language :: Python :: 3.10
38
+ Classifier: Programming Language :: Python :: 3.11
39
+ Classifier: Programming Language :: Python :: 3.12
40
+ Classifier: Programming Language :: Python :: 3.13
41
+ Requires-Python: >=3.9
42
+ Description-Content-Type: text/markdown
43
+ License-File: LICENSE
44
+ Requires-Dist: xraydb
45
+ Requires-Dist: sqlalchemy>=2
46
+ Requires-Dist: pymatgen
47
+ Requires-Dist: pyshortcuts
48
+ Provides-Extra: web
49
+ Requires-Dist: flask; extra == "web"
50
+ Provides-Extra: test
51
+ Requires-Dist: pytest; extra == "test"
52
+ Provides-Extra: doc
53
+ Requires-Dist: sphinx; extra == "doc"
54
+ Provides-Extra: dev
55
+ Requires-Dist: build; extra == "dev"
56
+ Requires-Dist: twine; extra == "dev"
57
+ Provides-Extra: all
58
+ Requires-Dist: larixite[dev,doc,test,web]; extra == "all"
59
+
60
+ # Larixite
61
+
62
+ Crystal structures and clusters of atoms for X-ray absorption spectroscopy.
63
+
64
+ The main purpose of larixite is to provide a Python package for using
65
+ crystallographic data or calculated clusters of atoms to generate inputs for
66
+ X-ray absorption spectroscopy and other scientific disciplines that use
67
+ non-crystalline clusters of atoms.
68
+
69
+ This project includes:
70
+
71
+ 1. an sqlite3 database of structures from the [American Mineralogical
72
+ Crystal Structure Database](https://rruff.geo.arizona.edu/AMS/amcsd.php) (AMCSD)
73
+ 2. Python code to convert structures from the AMCSD database, other CIF files,
74
+ or XYZ coordinates into atomic clusters for XAS calculations with FEFF,
75
+ FDMNES, and other XAS calculation tools.
76
+ 3. A basic web application to guide those conversions. See [Larixite Web App](https://millenia.cars.aps.anl.gov/larixite).
77
+
78
+
79
+ ## install
80
+
81
+ Either install from PyPI with
82
+
83
+ > pip install larixite
84
+
85
+
86
+ Download and unpack this code and install with
87
+
88
+
89
+ > pip install .
90
+
91
+
92
+ ## Status
93
+
94
+ Larixite has been in rapid development, but is also a spin-off from code that
95
+ has been in Xraylarch for many years. That is, while many parts of the code
96
+ are moving rapidly, much of the code is reasonably stable.
97
+
98
+
99
+ ## Web App
100
+
101
+ The [Larixite Web App](https://millenia.cars.aps.anl.gov/larixite) can be run
102
+ locally for debugging or for local deployment. To do this, install the extra
103
+ wed dependencies (essentially only Flask is needed) with
104
+
105
+ > pip install ".[web]"
106
+
107
+
108
+ and run the script "run_local.py" with
109
+
110
+ > python run_local.py
111
+
112
+ will launch a local web server with the app running at http://127.0.0.1:11564/
@@ -0,0 +1,53 @@
1
+ # Larixite
2
+
3
+ Crystal structures and clusters of atoms for X-ray absorption spectroscopy.
4
+
5
+ The main purpose of larixite is to provide a Python package for using
6
+ crystallographic data or calculated clusters of atoms to generate inputs for
7
+ X-ray absorption spectroscopy and other scientific disciplines that use
8
+ non-crystalline clusters of atoms.
9
+
10
+ This project includes:
11
+
12
+ 1. an sqlite3 database of structures from the [American Mineralogical
13
+ Crystal Structure Database](https://rruff.geo.arizona.edu/AMS/amcsd.php) (AMCSD)
14
+ 2. Python code to convert structures from the AMCSD database, other CIF files,
15
+ or XYZ coordinates into atomic clusters for XAS calculations with FEFF,
16
+ FDMNES, and other XAS calculation tools.
17
+ 3. A basic web application to guide those conversions. See [Larixite Web App](https://millenia.cars.aps.anl.gov/larixite).
18
+
19
+
20
+ ## install
21
+
22
+ Either install from PyPI with
23
+
24
+ > pip install larixite
25
+
26
+
27
+ Download and unpack this code and install with
28
+
29
+
30
+ > pip install .
31
+
32
+
33
+ ## Status
34
+
35
+ Larixite has been in rapid development, but is also a spin-off from code that
36
+ has been in Xraylarch for many years. That is, while many parts of the code
37
+ are moving rapidly, much of the code is reasonably stable.
38
+
39
+
40
+ ## Web App
41
+
42
+ The [Larixite Web App](https://millenia.cars.aps.anl.gov/larixite) can be run
43
+ locally for debugging or for local deployment. To do this, install the extra
44
+ wed dependencies (essentially only Flask is needed) with
45
+
46
+ > pip install ".[web]"
47
+
48
+
49
+ and run the script "run_local.py" with
50
+
51
+ > python run_local.py
52
+
53
+ will launch a local web server with the app running at http://127.0.0.1:11564/
@@ -0,0 +1,53 @@
1
+ # Makefile for Sphinx documentation
2
+ #
3
+ # You can set these variables from the command line.
4
+ SPHINXOPTS =
5
+ SPHINXBUILD = sphinx-build
6
+ PAPER =
7
+ BUILDDIR = _build
8
+
9
+ INSTALLDIR = /home/newville/public_html/larixite/
10
+
11
+ # Internal variables.
12
+ PAPEROPT_a4 = -D latex_paper_size=a4
13
+ PAPEROPT_letter = -D latex_paper_size=letter
14
+ ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
15
+
16
+ .PHONY: html pdf all help clean dirhtml latex
17
+
18
+
19
+ all: html
20
+ $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) _build/html
21
+ @echo "Build finished. The HTML pages are in _build/html."
22
+
23
+ html:
24
+ $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
25
+ @echo
26
+ @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
27
+
28
+ pdf: latex
29
+ cd $(BUILDDIR)/latex && make all-pdf
30
+ cp -pr $(BUILDDIR)/latex/larixite.pdf ./larixite.pdf
31
+
32
+ help:
33
+ @echo "Please use \`make <target>' where <target> is one of"
34
+ @echo " html to make standalone HTML files"
35
+ @echo " pdf pdf from latex version"
36
+ @echo " all html, pdf, and doc.zip"
37
+ @echo " clean to remove all output"
38
+
39
+ latex:
40
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) _build/latex
41
+ @echo
42
+ @echo "Build finished; the LaTeX files are in _build/latex."
43
+ @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
44
+ "run these through (pdf)latex."
45
+
46
+ latexpdf:
47
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) _build/latex
48
+ @echo "Running LaTeX files through pdflatex..."
49
+ make -C _build/latex all-pdf
50
+ @echo "pdflatex finished; the PDF files are in _build/latex."
51
+
52
+ clean:
53
+ -rm -rf _build/*
@@ -0,0 +1 @@
1
+ empty
@@ -0,0 +1,8 @@
1
+ <h3>Get Larixite</h3>
2
+ <p>Current version: <b>{{ release }}</b></p>
3
+ <p>Install: <tt>pip install larixite</tt></p>
4
+ <p>Develop:
5
+ &nbsp; <a href="https://github.com/xraypy/larixite/">github.com</a>
6
+ <p>
7
+
8
+ <hr>
@@ -0,0 +1,202 @@
1
+ # -*- coding: utf-8 -*-
2
+ #
3
+ # documentation build configuration file
4
+ #
5
+ # This file is execfile()d with the current directory set to its containing dir.
6
+ #
7
+ # Note that not all possible configuration values are present in this
8
+ # autogenerated file.
9
+ #
10
+ # All configuration values have a default; values that are commented out
11
+ # serve to show the default.
12
+
13
+ import sys, os
14
+ from datetime import date
15
+
16
+ # If extensions (or modules to document with autodoc) are in another directory,
17
+ # add these directories to sys.path here. If the directory is relative to the
18
+ # documentation root, use os.path.abspath to make it absolute, like shown here.
19
+ #sys.path.append(os.path.abspath('.'))
20
+
21
+ # -- General configuration -----------------------------------------------------
22
+
23
+ # Add any Sphinx extension module names here, as strings. They can be extensions
24
+ # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
25
+ extensions = ['sphinx.ext.autodoc',
26
+ 'sphinx.ext.todo',
27
+ 'sphinx.ext.coverage',
28
+ 'sphinx.ext.mathjax', 'sphinx.ext.intersphinx']
29
+
30
+ intersphinx_mapping = {'py': ('https://docs.python.org/3/', None)}
31
+
32
+ # Add any paths that contain templates here, relative to this directory.
33
+ templates_path = ['_templates']
34
+
35
+ # The suffix of source filenames.
36
+ source_suffix = '.rst'
37
+
38
+ # The encoding of source files.
39
+ #source_encoding = 'utf-8'
40
+
41
+ # The master toctree document.
42
+ master_doc = 'index'
43
+
44
+ # General information about the project.
45
+ project = u'larixite'
46
+ copyright = f"""{date.today().year}, Matthew Newville, The University of Chicago,
47
+ Mauro Rovezzi, University Grenoble Alpes, CNRS"""
48
+
49
+ # The version info for the project you're documenting, acts as replacement for
50
+ # |version| and |release|, also used in various other places throughout the
51
+ # built documents.
52
+ #
53
+ # The short X.Y version.
54
+ import larixite
55
+ release = larixite.__version__.split('+', 1)[0]
56
+
57
+
58
+ # The language for content autogenerated by Sphinx. Refer to documentation
59
+ # for a list of supported languages.
60
+ #language = None
61
+
62
+ # There are two options for replacing |today|: either, you set today to some
63
+ # non-false value, then it is used:
64
+ #today = ''
65
+ # Else, today_fmt is used as the format for a strftime call.
66
+ #today_fmt = '%B %d, %Y'
67
+
68
+ # List of documents that shouldn't be included in the build.
69
+ #unused_docs = []
70
+
71
+ # List of directories, relative to source directory, that shouldn't be searched
72
+ # for source files.
73
+ exclude_trees = ['_build']
74
+
75
+ # The reST default role (used for this markup: `text`) to use for all documents.
76
+ #default_role = None
77
+
78
+ # If true, '()' will be appended to :func: etc. cross-reference text.
79
+ add_function_parentheses = True
80
+
81
+ # If true, the current module name will be prepended to all description
82
+ # unit titles (such as .. function::).
83
+ add_module_names = True
84
+
85
+ # If true, sectionauthor and moduleauthor directives will be shown in the
86
+ # output. They are ignored by default.
87
+ #show_authors = False
88
+
89
+ # The name of the Pygments (syntax highlighting) style to use.
90
+ pygments_style = 'sphinx'
91
+
92
+ # A list of ignored prefixes for module index sorting.
93
+ #modindex_common_prefix = []
94
+
95
+
96
+ # -- Options for HTML output ---------------------------------------------------
97
+
98
+ # The theme to use for HTML and HTML Help pages. Major themes that come with
99
+ # Sphinx are currently 'default' and 'sphinxdoc'.
100
+ html_theme = 'bizstyle'
101
+
102
+ # html_theme = 'nature'
103
+ # html_theme = 'agogo'
104
+ # html_theme_options = {'pagewidth':'85em', 'documentwidth':'60em', 'sidebarwidth': '25em',
105
+ # # 'headercolor1': '#000080',
106
+ # # 'headercolor2': '#0000A0',
107
+ # }
108
+
109
+ # Add any paths that contain custom themes here, relative to this directory.
110
+ #html_theme_path = []
111
+
112
+ # The name for this set of Sphinx documents. If None, it defaults to
113
+ # "<project> v<release> documentation".
114
+ #html_title = None
115
+ html_title = 'Larixite: Crystallographic Structures for X-ray Absorption Spectroscopy'
116
+
117
+ # A shorter title for the navigation bar. Default is the same as html_title.
118
+ html_short_title = 'Larixite: Crystals for XAS'
119
+
120
+ # The name of an image file (relative to this directory) to place at the top
121
+ # of the sidebar.
122
+ #html_logo = None
123
+
124
+ # The name of an image file (within the static path) to use as favicon of the
125
+ # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
126
+ # pixels large.
127
+ #html_favicon = None
128
+
129
+ # Add any paths that contain custom static files (such as style sheets) here,
130
+ # relative to this directory. They are copied after the builtin static files,
131
+ # so a file named "default.css" will overwrite the builtin "default.css".
132
+ html_static_path = ['_static']
133
+
134
+ # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
135
+ # using the given strftime format.
136
+ #html_last_updated_fmt = '%b %d, %Y'
137
+
138
+ # If true, SmartyPants will be used to convert quotes and dashes to
139
+ # typographically correct entities.
140
+ # html_use_smartypants = False # True
141
+
142
+ # Custom sidebar templates, maps document names to template names.
143
+ html_sidebars = {'index': ['indexsidebar.html','searchbox.html']}
144
+
145
+ # Additional templates that should be rendered to pages, maps page names to
146
+ # template names.
147
+ #html_additional_pages = {}
148
+
149
+ # If false, no module index is generated.
150
+ #html_use_modindex = True
151
+
152
+ # If false, no index is generated.
153
+ #html_use_index = True
154
+
155
+ # If true, the index is split into individual pages for each letter.
156
+ #html_split_index = False
157
+
158
+ # If true, links to the reST sources are added to the pages.
159
+ html_show_sourcelink = True
160
+
161
+ # If true, an OpenSearch description file will be output, and all pages will
162
+ # contain a <link> tag referring to it. The value of this option must be the
163
+ # base URL from which the finished HTML is served.
164
+ #html_use_opensearch = ''
165
+
166
+ # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
167
+ #html_file_suffix = ''
168
+
169
+ # Output file base name for HTML help builder.
170
+ htmlhelp_basename = 'larixitedoc'
171
+
172
+ # -- Options for LaTeX output --------------------------------------------------
173
+
174
+ # The paper size ('letter' or 'a4').
175
+ #latex_paper_size = 'letter'
176
+
177
+ # The font size ('10pt', '11pt' or '12pt').
178
+ #latex_font_size = '10pt'
179
+
180
+ # Grouping the document tree into LaTeX files. List of tuples
181
+ # (source start file, target name, title, author, documentclass [howto/manual]).
182
+ latex_documents = [
183
+ ('index', 'larixite.tex', u'larixite documentation',
184
+ u'Matthew Newville, Mauro Rovezzi', 'manual'),
185
+ ]
186
+
187
+ # The name of an image file (relative to this directory) to place at the top of
188
+ # the title page.
189
+ #latex_logo = None
190
+
191
+ # For "manual" documents, if this is true, then toplevel headings are parts,
192
+ # not chapters.
193
+ #latex_use_parts = False
194
+
195
+ # Additional stuff for the LaTeX preamble.
196
+ #latex_preamble = ''
197
+
198
+ # Documents to append as an appendix to all manuals.
199
+ #latex_appendices = []
200
+
201
+ # If false, no module index is generated.
202
+ #latex_use_modindex = True
@@ -0,0 +1,60 @@
1
+ .. larixite documentation master file
2
+
3
+ Larixite: Crystal structures for X-ray absorption spectroscopy
4
+ ===============================================================
5
+
6
+ .. _xraylarch: https://xraypy.github.io/xraylarch/
7
+ .. _Larixite Webapp: https://millenia.cars.aps.anl.gov/larixite
8
+ .. _American Mineralogical Crystal Structure Database: https://rruff.geo.arizona.edu/AMS/amcsd.php
9
+
10
+ Larixite is a Python package to help use crystallographic data to build
11
+ clusters of atoms to generate inputs for X-ray absorption spectroscopy and
12
+ other scientific disciplines that use non-crystalline clusters of atoms.
13
+
14
+ This project includes:
15
+
16
+ 1. an sqlite3 database of structures from the `American Mineralogical Crystal Structure Database`_ (AMCSD).
17
+ 2. Python code to convert structures from the AMCSD database, other CIF files,
18
+ or XYZ coordinates into atomic clusters for XAS calculations with FEFF,
19
+ FDMNES, and other XAS calculation tools.
20
+ 3. A basic web application to guide those conversions. See `Larixite WebApp`_.
21
+
22
+
23
+ Installation
24
+ ------------------
25
+
26
+ Either install from PyPI with::
27
+
28
+ > pip install larixite
29
+
30
+
31
+ or download and unpack this code and install with::
32
+
33
+
34
+ > pip install .
35
+
36
+
37
+ Status
38
+ --------
39
+
40
+ Larixite has been in rapid development, but is also a spin-off from code that
41
+ has been in `xraylarch`_ for many years. That is, while many parts of the code
42
+ are moving rapidly, much of the code is reasonably stable.
43
+
44
+
45
+ Web App
46
+ ----------
47
+
48
+
49
+ The `Larixite WebApp`_ can be run locally for debugging or for local
50
+ deployment. To do this, install the extra wed dependencies (essentially only
51
+ Flask is needed) with::
52
+
53
+ > pip install ".[web]"
54
+
55
+
56
+ and run the script "run_local.py" with::
57
+
58
+ > python run_local.py
59
+
60
+ will launch a local web server with the app running at http://127.0.0.1:11564/
@@ -0,0 +1,3 @@
1
+ from .version import __version__
2
+ from .amcsd import get_amcsd
3
+ from .cif_cluster import cif_cluster, cif2feffinp, read_cif_structure