edrixs 0.1.3__tar.gz → 0.3.0.dev1__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.
- edrixs-0.3.0.dev1/AUTHORS.rst +29 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/CONTRIBUTING.rst +21 -24
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/MANIFEST.in +1 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/PKG-INFO +29 -8
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/README.rst +25 -5
- edrixs-0.3.0.dev1/docs/source/_ext/backend_options_directive.py +81 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/docs/source/conf.py +43 -15
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/docs/source/index.rst +1 -1
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/docs/source/reference/index.rst +3 -1
- edrixs-0.3.0.dev1/docs/source/reference/models.rst +15 -0
- edrixs-0.3.0.dev1/docs/source/reference/poles.rst +5 -0
- edrixs-0.3.0.dev1/docs/source/reference/solvers.rst +17 -0
- edrixs-0.3.0.dev1/docs/source/release-history.rst +189 -0
- edrixs-0.3.0.dev1/docs/source/user/backend.rst +90 -0
- edrixs-0.3.0.dev1/docs/source/user/backends/dense.rst +54 -0
- edrixs-0.3.0.dev1/docs/source/user/backends/fortran.rst +70 -0
- edrixs-0.3.0.dev1/docs/source/user/backends/petsc.rst +140 -0
- edrixs-0.3.0.dev1/docs/source/user/backends/scipy.rst +67 -0
- edrixs-0.3.0.dev1/docs/source/user/conventions.rst +154 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/docs/source/user/devcontainer.rst +6 -6
- edrixs-0.3.0.dev1/docs/source/user/examples.rst +32 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/docs/source/user/index.rst +4 -4
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/docs/source/user/installation.rst +44 -19
- edrixs-0.3.0.dev1/docs/source/user/introduction.rst +214 -0
- edrixs-0.3.0.dev1/docs/source/user/nio_l23_xas.rst +17 -0
- edrixs-0.3.0.dev1/docs/source/user/nio_siam_xas_rixs.rst +55 -0
- edrixs-0.3.0.dev1/docs/source/user/papers.rst +98 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/docs/source/user/usedocker.rst +8 -6
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/docs/source/user/whatisedrixs.rst +3 -3
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs/__init__.py +3 -0
- edrixs-0.3.0.dev1/edrixs/_backend_options.py +169 -0
- edrixs-0.3.0.dev1/edrixs/_numba_operator_kernels.py +264 -0
- edrixs-0.3.0.dev1/edrixs/_operator_builder.py +250 -0
- edrixs-0.3.0.dev1/edrixs/_solvers_helpers.py +684 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs/angular_momentum.py +5 -5
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs/basis_transform.py +1 -1
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs/coulomb_utensor.py +12 -12
- edrixs-0.3.0.dev1/edrixs/dense_backend/__init__.py +15 -0
- edrixs-0.3.0.dev1/edrixs/dense_backend/dense_backend.py +310 -0
- edrixs-0.3.0.dev1/edrixs/dense_backend/options.py +20 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs/fit_hyb.py +1 -1
- edrixs-0.3.0.dev1/edrixs/fock_basis.py +662 -0
- edrixs-0.3.0.dev1/edrixs/fortran_backend/__init__.py +19 -0
- edrixs-0.3.0.dev1/edrixs/fortran_backend/fortran_backend.py +456 -0
- edrixs-0.3.0.dev1/edrixs/fortran_backend/iostream_fortran.py +197 -0
- edrixs-0.3.0.dev1/edrixs/fortran_backend/options.py +108 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs/iostream.py +1 -163
- edrixs-0.3.0.dev1/edrixs/models.py +994 -0
- edrixs-0.3.0.dev1/edrixs/petsc_backend/__init__.py +1 -0
- edrixs-0.3.0.dev1/edrixs/petsc_backend/hash_basis_methods.py +184 -0
- edrixs-0.3.0.dev1/edrixs/petsc_backend/lanczos.py +81 -0
- edrixs-0.3.0.dev1/edrixs/petsc_backend/options.py +177 -0
- edrixs-0.3.0.dev1/edrixs/petsc_backend/petsc_backend.py +821 -0
- edrixs-0.3.0.dev1/edrixs/petsc_backend/petsc_shifted_pminres.py +174 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs/photon_transition.py +12 -0
- edrixs-0.3.0.dev1/edrixs/plot_spectrum.py +45 -0
- edrixs-0.3.0.dev1/edrixs/poles.py +90 -0
- edrixs-0.3.0.dev1/edrixs/scipy_backend/__init__.py +1 -0
- edrixs-0.3.0.dev1/edrixs/scipy_backend/hash_basis_methods.py +46 -0
- edrixs-0.3.0.dev1/edrixs/scipy_backend/krylov.py +311 -0
- edrixs-0.3.0.dev1/edrixs/scipy_backend/options.py +78 -0
- edrixs-0.3.0.dev1/edrixs/scipy_backend/scipy_backend.py +744 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs/solvers.py +867 -805
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs/utils.py +86 -1
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs.egg-info/PKG-INFO +29 -8
- edrixs-0.3.0.dev1/edrixs.egg-info/SOURCES.txt +166 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs.egg-info/requires.txt +1 -0
- edrixs-0.3.0.dev1/pyproject.toml +17 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/requirements.txt +1 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/setup.py +7 -4
- edrixs-0.3.0.dev1/tests/test_angular_momentum.py +256 -0
- edrixs-0.3.0.dev1/tests/test_backend_options.py +103 -0
- edrixs-0.3.0.dev1/tests/test_basis_representation_routes.py +144 -0
- edrixs-0.3.0.dev1/tests/test_basis_transform.py +224 -0
- edrixs-0.3.0.dev1/tests/test_coulomb_utensor.py +214 -0
- edrixs-0.3.0.dev1/tests/test_dense_backend.py +242 -0
- edrixs-0.3.0.dev1/tests/test_ed_krylov.py +57 -0
- edrixs-0.3.0.dev1/tests/test_ed_shift.py +224 -0
- edrixs-0.3.0.dev1/tests/test_filled_core.py +135 -0
- edrixs-0.3.0.dev1/tests/test_fock_basis.py +211 -0
- edrixs-0.3.0.dev1/tests/test_fortran_backend.py +167 -0
- edrixs-0.3.0.dev1/tests/test_fortran_backend_mpi.py +154 -0
- edrixs-0.3.0.dev1/tests/test_lazy_operators.py +195 -0
- edrixs-0.3.0.dev1/tests/test_legacy_solver_deprecations.py +27 -0
- edrixs-0.3.0.dev1/tests/test_manybody_operator.py +252 -0
- edrixs-0.3.0.dev1/tests/test_model_operator_routes.py +139 -0
- edrixs-0.3.0.dev1/tests/test_model_siam_2d1p.py +123 -0
- edrixs-0.3.0.dev1/tests/test_numba_cache.py +39 -0
- edrixs-0.3.0.dev1/tests/test_operator_route_consistency.py +187 -0
- edrixs-0.3.0.dev1/tests/test_petsc_backend.py +269 -0
- edrixs-0.3.0.dev1/tests/test_petsc_coo.py +107 -0
- edrixs-0.3.0.dev1/tests/test_petsc_filled_core.py +203 -0
- edrixs-0.3.0.dev1/tests/test_petsc_operator_lifetime.py +330 -0
- edrixs-0.3.0.dev1/tests/test_petsc_preallocation.py +97 -0
- edrixs-0.3.0.dev1/tests/test_rixs_solve_reuse.py +197 -0
- edrixs-0.3.0.dev1/tests/test_scipy_backend.py +228 -0
- edrixs-0.3.0.dev1/tests/test_scipy_krylov.py +96 -0
- edrixs-0.3.0.dev1/tests/test_scipy_operator_construction.py +130 -0
- edrixs-0.3.0.dev1/tests/test_soc.py +142 -0
- edrixs-0.3.0.dev1/tests/test_solver_helpers.py +49 -0
- edrixs-0.3.0.dev1/tests/test_solvers_dispatch.py +114 -0
- {edrixs-0.1.3/edrixs → edrixs-0.3.0.dev1}/tests/test_utils.py +10 -0
- edrixs-0.3.0.dev1/tests/test_utils_extra.py +367 -0
- edrixs-0.1.3/AUTHORS.rst +0 -13
- edrixs-0.1.3/docs/source/reference/solvers.rst +0 -4
- edrixs-0.1.3/docs/source/release-history.rst +0 -6
- edrixs-0.1.3/docs/source/user/basics.ed.rst +0 -5
- edrixs-0.1.3/docs/source/user/basics.rixs.rst +0 -5
- edrixs-0.1.3/docs/source/user/basics.rst +0 -10
- edrixs-0.1.3/docs/source/user/basics.xas.rst +0 -5
- edrixs-0.1.3/docs/source/user/examples.rst +0 -69
- edrixs-0.1.3/docs/source/user/papers.rst +0 -54
- edrixs-0.1.3/docs/source/user/pythontips.rst +0 -66
- edrixs-0.1.3/docs/source/user/quickstart.rst +0 -46
- edrixs-0.1.3/edrixs/fock_basis.py +0 -451
- edrixs-0.1.3/edrixs/plot_spectrum.py +0 -175
- edrixs-0.1.3/edrixs/tests/__init__.py +0 -0
- edrixs-0.1.3/edrixs/tests/conftest.py +0 -0
- edrixs-0.1.3/edrixs/tests/test_examples.py +0 -3
- edrixs-0.1.3/edrixs/tests/test_fortran.py +0 -42
- edrixs-0.1.3/edrixs.egg-info/SOURCES.txt +0 -108
- edrixs-0.1.3/pyproject.toml +0 -9
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/LICENSE +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/docs/Makefile +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/docs/make.bat +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/docs/source/reference/angular_momentum.rst +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/docs/source/reference/basis_transform.rst +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/docs/source/reference/coulomb_utensor.rst +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/docs/source/reference/fit_hyb.rst +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/docs/source/reference/fock_basis.rst +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/docs/source/reference/iostream.rst +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/docs/source/reference/manybody_operator.rst +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/docs/source/reference/photon_transition.rst +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/docs/source/reference/plot_spectrum.rst +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/docs/source/reference/rixs_utils.rst +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/docs/source/reference/soc.rst +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/docs/source/reference/utils.rst +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/docs/source/reference/wannier_ham.rst +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs/_version.py +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs/atom_data/Co.json +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs/atom_data/Cr.json +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs/atom_data/Cu.json +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs/atom_data/Fe.json +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs/atom_data/Ir.json +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs/atom_data/Mn.json +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs/atom_data/Ni.json +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs/atom_data/Os.json +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs/atom_data/Pu.json +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs/atom_data/Re.json +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs/atom_data/Sm.json +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs/atom_data/Ti.json +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs/atom_data/U.json +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs/atom_data/V.json +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs/manybody_operator.py +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs/rixs_utils.py +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs/scripts.py +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs/soc.py +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs/wannier_ham.py +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs.egg-info/dependency_links.txt +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs.egg-info/entry_points.txt +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/edrixs.egg-info/top_level.txt +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/setup.cfg +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/src/arpack.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/src/ed_driver.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/src/ed_main.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/src/fock.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/src/full_diag.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/src/ham.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/src/io.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/src/lanczos.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/src/linsys.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/src/m_constants.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/src/m_control.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/src/m_global.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/src/m_types.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/src/opavg_driver.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/src/opavg_main.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/src/pyapi.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/src/rixs_driver.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/src/rixs_main.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/src/spmv.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/src/utils.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/src/xas_driver.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/src/xas_main.f90 +0 -0
- {edrixs-0.1.3/edrixs → edrixs-0.3.0.dev1}/tests/test_wannier_ham.py +0 -0
- {edrixs-0.1.3 → edrixs-0.3.0.dev1}/versioneer.py +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
=======
|
|
2
|
+
Credits
|
|
3
|
+
=======
|
|
4
|
+
|
|
5
|
+
Maintainer
|
|
6
|
+
----------
|
|
7
|
+
|
|
8
|
+
* Mark Dean, Brookhaven National Laboratory <mdean@bnl.gov>
|
|
9
|
+
|
|
10
|
+
Contributors
|
|
11
|
+
------------
|
|
12
|
+
|
|
13
|
+
The following contributors are recorded in the Git history (aliases have been
|
|
14
|
+
combined and automated accounts omitted):
|
|
15
|
+
|
|
16
|
+
* Yilin Wang
|
|
17
|
+
* Mark Dean
|
|
18
|
+
* Marton Lajer
|
|
19
|
+
* Max Rakitin
|
|
20
|
+
* Seher Karakuzu
|
|
21
|
+
* Steve Johnston
|
|
22
|
+
* Jinu Thomas
|
|
23
|
+
* Mithilesh Nayak
|
|
24
|
+
* Joseph Kleinhenz
|
|
25
|
+
* Anselm Hahn
|
|
26
|
+
* Stuart Campbell
|
|
27
|
+
* Dan Allan
|
|
28
|
+
* Thomas A. Caswell
|
|
29
|
+
* Scott Wedge
|
|
@@ -13,7 +13,7 @@ Types of Contributions
|
|
|
13
13
|
Report Bugs
|
|
14
14
|
~~~~~~~~~~~
|
|
15
15
|
|
|
16
|
-
Report bugs at https://github.com/
|
|
16
|
+
Report bugs at https://github.com/EDRIXS/edrixs/issues.
|
|
17
17
|
|
|
18
18
|
If you are reporting a bug, please include:
|
|
19
19
|
|
|
@@ -42,7 +42,8 @@ or even on the web in blog posts, articles, and such.
|
|
|
42
42
|
Submit Feedback
|
|
43
43
|
~~~~~~~~~~~~~~~
|
|
44
44
|
|
|
45
|
-
The best way to send feedback is to file an issue at
|
|
45
|
+
The best way to send feedback is to file an issue at
|
|
46
|
+
https://github.com/EDRIXS/edrixs/issues.
|
|
46
47
|
|
|
47
48
|
If you are proposing a feature:
|
|
48
49
|
|
|
@@ -54,40 +55,34 @@ If you are proposing a feature:
|
|
|
54
55
|
Get Started!
|
|
55
56
|
------------
|
|
56
57
|
|
|
57
|
-
Ready to contribute? Here's how to set up
|
|
58
|
+
Ready to contribute? Here's how to set up ``edrixs`` for local development.
|
|
59
|
+
|
|
60
|
+
1. Fork the ``EDRIXS/edrixs`` repository on GitHub.
|
|
58
61
|
|
|
59
|
-
1. Fork the `edrixs` repo on GitHub.
|
|
60
62
|
2. Clone your fork locally::
|
|
61
63
|
|
|
62
64
|
$ git clone git@github.com:your_name_here/edrixs.git
|
|
65
|
+
$ cd edrixs
|
|
63
66
|
|
|
64
|
-
3.
|
|
65
|
-
|
|
66
|
-
$ mkvirtualenv edrixs
|
|
67
|
-
$ cd edrixs/
|
|
68
|
-
$ python setup.py develop
|
|
67
|
+
3. Follow the `source-compilation instructions
|
|
68
|
+
<https://edrixs.github.io/edrixs/user/installation.html#sourceinstall>`_.
|
|
69
69
|
|
|
70
70
|
4. Create a branch for local development::
|
|
71
71
|
|
|
72
|
-
$ git
|
|
72
|
+
$ git switch -c name-of-your-bugfix-or-feature
|
|
73
73
|
|
|
74
74
|
Now you can make your changes locally.
|
|
75
75
|
|
|
76
|
-
5.
|
|
76
|
+
5. Install the pre-commit hooks::
|
|
77
77
|
|
|
78
78
|
$ pre-commit install
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
$ git commit -a -m "Your commit message"
|
|
84
|
-
|
|
85
|
-
6. When you're done making changes, check that your changes pass flake8 and the tests, including testing other Python versions with tox::
|
|
86
|
-
|
|
87
|
-
$ python setup.py test
|
|
88
|
-
$ tox
|
|
80
|
+
6. When you are done making changes, run the checks used for local
|
|
81
|
+
development::
|
|
89
82
|
|
|
90
|
-
|
|
83
|
+
$ pre-commit run --all-files
|
|
84
|
+
$ pytest -s -vv
|
|
85
|
+
$ make -C docs html
|
|
91
86
|
|
|
92
87
|
7. Commit your changes and push your branch to GitHub::
|
|
93
88
|
|
|
@@ -106,6 +101,8 @@ Before you submit a pull request, check that it meets these guidelines:
|
|
|
106
101
|
2. If the pull request adds functionality, the docs should be updated. Put
|
|
107
102
|
your new functionality into a function with a docstring, and add the
|
|
108
103
|
feature to the list in README.rst.
|
|
109
|
-
3. The pull request should work
|
|
110
|
-
|
|
111
|
-
|
|
104
|
+
3. The pull request should work with the supported Python versions. EDRIXS
|
|
105
|
+
requires Python 3.10 or newer, and the continuous-integration matrix
|
|
106
|
+
currently tests Python 3.10 through 3.14. Check the GitHub Actions results
|
|
107
|
+
at https://github.com/EDRIXS/edrixs/actions and make sure all required jobs
|
|
108
|
+
pass.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: edrixs
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0.dev1
|
|
4
4
|
Summary: An open source toolkit for simulating RIXS spectra based on ED
|
|
5
|
-
Home-page: https://github.com/
|
|
5
|
+
Home-page: https://github.com/EDRIXS/edrixs
|
|
6
6
|
Author: Brookhaven National Lab
|
|
7
|
-
Author-email:
|
|
7
|
+
Author-email: mdean@bnl.gov
|
|
8
8
|
License: GPL-3.0-or-later
|
|
9
9
|
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
|
10
10
|
Classifier: Development Status :: 2 - Pre-Alpha
|
|
@@ -14,6 +14,7 @@ Requires-Python: >=3.10
|
|
|
14
14
|
License-File: LICENSE
|
|
15
15
|
License-File: AUTHORS.rst
|
|
16
16
|
Requires-Dist: numpy>=1.26
|
|
17
|
+
Requires-Dist: numba
|
|
17
18
|
Requires-Dist: scipy
|
|
18
19
|
Requires-Dist: sympy
|
|
19
20
|
Requires-Dist: matplotlib
|
|
@@ -34,14 +35,34 @@ Dynamic: summary
|
|
|
34
35
|
edrixs
|
|
35
36
|
===============================
|
|
36
37
|
|
|
37
|
-
|
|
38
|
-
:target: https://pypi.python.org/pypi/edrixs
|
|
38
|
+
|ci| |conda| |pypi| |docs| |doi| |binder|
|
|
39
39
|
|
|
40
|
-
.. image:: https://
|
|
41
|
-
|
|
40
|
+
.. |ci| image:: https://github.com/EDRIXS/edrixs/actions/workflows/ci-test.yml/badge.svg?branch=master&event=push
|
|
41
|
+
:target: https://github.com/EDRIXS/edrixs/actions/workflows/ci-test.yml?query=branch%3Amaster+event%3Apush
|
|
42
|
+
:alt: CI status
|
|
43
|
+
|
|
44
|
+
.. |conda| image:: https://img.shields.io/conda/vn/conda-forge/edrixs.svg
|
|
45
|
+
:target: https://anaconda.org/conda-forge/edrixs
|
|
46
|
+
:alt: Conda-forge version
|
|
47
|
+
|
|
48
|
+
.. |pypi| image:: https://img.shields.io/pypi/v/edrixs.svg
|
|
49
|
+
:target: https://pypi.org/project/edrixs/
|
|
50
|
+
:alt: PyPI version
|
|
51
|
+
|
|
52
|
+
.. |docs| image:: https://img.shields.io/badge/docs-online-blue.svg
|
|
53
|
+
:target: https://edrixs.github.io/edrixs/
|
|
54
|
+
:alt: Documentation
|
|
55
|
+
|
|
56
|
+
.. |doi| image:: https://img.shields.io/badge/DOI-10.1016%2Fj.cpc.2019.04.018-blue.svg
|
|
57
|
+
:target: https://doi.org/10.1016/j.cpc.2019.04.018
|
|
58
|
+
:alt: Paper DOI
|
|
59
|
+
|
|
60
|
+
.. |binder| image:: https://mybinder.org/badge_logo.svg
|
|
61
|
+
:target: https://mybinder.org/v2/gh/edrixs/edrixs.git/master?urlpath=lab
|
|
62
|
+
:alt: Launch Binder
|
|
42
63
|
|
|
43
64
|
EDRIXS is an open source toolkit for simulating XAS and RIXS spectra based on exact diagonalization of model Hamiltonians.
|
|
44
|
-
It was started as part of `COMSCOPE project <https://www.bnl.gov/comscope
|
|
65
|
+
It was started as part of the `COMSCOPE project <https://www.bnl.gov/comscope/>`_ in the
|
|
45
66
|
Center for Computational Material Spectroscopy and Design, Brookhaven National Laboratory and is now maintained and
|
|
46
67
|
developed in collaboration between the `Condensed Matter Physics and Materials Science Division <https://www.bnl.gov/cmpmsd/>`_
|
|
47
68
|
and the `National Syncrotron Light Source II <https://www.bnl.gov/nsls2/>`_.
|
|
@@ -2,14 +2,34 @@
|
|
|
2
2
|
edrixs
|
|
3
3
|
===============================
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
:target: https://pypi.python.org/pypi/edrixs
|
|
5
|
+
|ci| |conda| |pypi| |docs| |doi| |binder|
|
|
7
6
|
|
|
8
|
-
.. image:: https://
|
|
9
|
-
|
|
7
|
+
.. |ci| image:: https://github.com/EDRIXS/edrixs/actions/workflows/ci-test.yml/badge.svg?branch=master&event=push
|
|
8
|
+
:target: https://github.com/EDRIXS/edrixs/actions/workflows/ci-test.yml?query=branch%3Amaster+event%3Apush
|
|
9
|
+
:alt: CI status
|
|
10
|
+
|
|
11
|
+
.. |conda| image:: https://img.shields.io/conda/vn/conda-forge/edrixs.svg
|
|
12
|
+
:target: https://anaconda.org/conda-forge/edrixs
|
|
13
|
+
:alt: Conda-forge version
|
|
14
|
+
|
|
15
|
+
.. |pypi| image:: https://img.shields.io/pypi/v/edrixs.svg
|
|
16
|
+
:target: https://pypi.org/project/edrixs/
|
|
17
|
+
:alt: PyPI version
|
|
18
|
+
|
|
19
|
+
.. |docs| image:: https://img.shields.io/badge/docs-online-blue.svg
|
|
20
|
+
:target: https://edrixs.github.io/edrixs/
|
|
21
|
+
:alt: Documentation
|
|
22
|
+
|
|
23
|
+
.. |doi| image:: https://img.shields.io/badge/DOI-10.1016%2Fj.cpc.2019.04.018-blue.svg
|
|
24
|
+
:target: https://doi.org/10.1016/j.cpc.2019.04.018
|
|
25
|
+
:alt: Paper DOI
|
|
26
|
+
|
|
27
|
+
.. |binder| image:: https://mybinder.org/badge_logo.svg
|
|
28
|
+
:target: https://mybinder.org/v2/gh/edrixs/edrixs.git/master?urlpath=lab
|
|
29
|
+
:alt: Launch Binder
|
|
10
30
|
|
|
11
31
|
EDRIXS is an open source toolkit for simulating XAS and RIXS spectra based on exact diagonalization of model Hamiltonians.
|
|
12
|
-
It was started as part of `COMSCOPE project <https://www.bnl.gov/comscope
|
|
32
|
+
It was started as part of the `COMSCOPE project <https://www.bnl.gov/comscope/>`_ in the
|
|
13
33
|
Center for Computational Material Spectroscopy and Design, Brookhaven National Laboratory and is now maintained and
|
|
14
34
|
developed in collaboration between the `Condensed Matter Physics and Materials Science Division <https://www.bnl.gov/cmpmsd/>`_
|
|
15
35
|
and the `National Syncrotron Light Source II <https://www.bnl.gov/nsls2/>`_.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"""Sphinx directive rendering EDRIXS backend option registries."""
|
|
2
|
+
|
|
3
|
+
from docutils import nodes
|
|
4
|
+
from docutils.parsers.rst import Directive
|
|
5
|
+
|
|
6
|
+
from edrixs._backend_options import default_text
|
|
7
|
+
from edrixs.dense_backend.options import OPTIONS as DENSE_OPTIONS
|
|
8
|
+
from edrixs.fortran_backend.options import OPTIONS as FORTRAN_OPTIONS
|
|
9
|
+
from edrixs.petsc_backend.options import OPTIONS as PETSC_OPTIONS
|
|
10
|
+
from edrixs.scipy_backend.options import OPTIONS as SCIPY_OPTIONS
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
REGISTRIES = {
|
|
14
|
+
'dense': DENSE_OPTIONS,
|
|
15
|
+
'fortran': FORTRAN_OPTIONS,
|
|
16
|
+
'petsc': PETSC_OPTIONS,
|
|
17
|
+
'scipy': SCIPY_OPTIONS,
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def _entry(text, *, literal=False):
|
|
22
|
+
entry = nodes.entry()
|
|
23
|
+
paragraph = nodes.paragraph()
|
|
24
|
+
paragraph += nodes.literal(text=text) if literal else nodes.Text(text)
|
|
25
|
+
entry += paragraph
|
|
26
|
+
return entry
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def _row(values, *, header=False):
|
|
30
|
+
row = nodes.row()
|
|
31
|
+
for index, value in enumerate(values):
|
|
32
|
+
row += _entry(value, literal=not header and index < 2)
|
|
33
|
+
return row
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class BackendOptionsDirective(Directive):
|
|
37
|
+
"""Render the option table for ``BACKEND OPERATION``."""
|
|
38
|
+
|
|
39
|
+
required_arguments = 2
|
|
40
|
+
|
|
41
|
+
def run(self):
|
|
42
|
+
backend, operation = self.arguments
|
|
43
|
+
try:
|
|
44
|
+
specifications = REGISTRIES[backend][operation]
|
|
45
|
+
except KeyError as exc:
|
|
46
|
+
raise self.error(
|
|
47
|
+
"unknown backend option table: {} {}".format(
|
|
48
|
+
backend, operation
|
|
49
|
+
)
|
|
50
|
+
) from exc
|
|
51
|
+
|
|
52
|
+
if not specifications:
|
|
53
|
+
return [nodes.paragraph(text='No backend-specific options.')]
|
|
54
|
+
|
|
55
|
+
table = nodes.table()
|
|
56
|
+
tgroup = nodes.tgroup(cols=3)
|
|
57
|
+
table += tgroup
|
|
58
|
+
for width in (20, 24, 56):
|
|
59
|
+
tgroup += nodes.colspec(colwidth=width)
|
|
60
|
+
|
|
61
|
+
head = nodes.thead()
|
|
62
|
+
head += _row(('Option', 'Default', 'Description'), header=True)
|
|
63
|
+
tgroup += head
|
|
64
|
+
|
|
65
|
+
body = nodes.tbody()
|
|
66
|
+
for name, specification in specifications.items():
|
|
67
|
+
body += _row((
|
|
68
|
+
name,
|
|
69
|
+
default_text(specification),
|
|
70
|
+
specification.description,
|
|
71
|
+
))
|
|
72
|
+
tgroup += body
|
|
73
|
+
return [table]
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
def setup(app):
|
|
77
|
+
app.add_directive('backend-options', BackendOptionsDirective)
|
|
78
|
+
return {
|
|
79
|
+
'parallel_read_safe': True,
|
|
80
|
+
'parallel_write_safe': True,
|
|
81
|
+
}
|
|
@@ -13,14 +13,32 @@
|
|
|
13
13
|
# All configuration values have a default; values that are commented out
|
|
14
14
|
# serve to show the default.
|
|
15
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
|
-
#
|
|
20
16
|
import os
|
|
21
17
|
import sys
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
from importlib.metadata import PackageNotFoundError, version as distribution_version
|
|
19
|
+
from pathlib import Path
|
|
20
|
+
|
|
21
|
+
source_dir = Path(__file__).resolve().parent
|
|
22
|
+
sys.path.insert(0, str(source_dir / '_ext'))
|
|
23
|
+
|
|
24
|
+
try:
|
|
25
|
+
import edrixs
|
|
26
|
+
import edrixs.fedrixs
|
|
27
|
+
edrixs_version = distribution_version("edrixs")
|
|
28
|
+
except (ImportError, PackageNotFoundError) as exc:
|
|
29
|
+
raise RuntimeError(
|
|
30
|
+
"Building the EDRIXS documentation requires an installed EDRIXS "
|
|
31
|
+
"package with the native fedrixs extension."
|
|
32
|
+
) from exc
|
|
33
|
+
|
|
34
|
+
print(
|
|
35
|
+
"\n"
|
|
36
|
+
+ "=" * 79
|
|
37
|
+
+ f"\nBUILDING DOCS AGAINST INSTALLED EDRIXS {edrixs_version}\n"
|
|
38
|
+
+ f"Package: {Path(edrixs.__file__).resolve()}\n"
|
|
39
|
+
+ "=" * 79
|
|
40
|
+
+ "\n"
|
|
41
|
+
)
|
|
24
42
|
|
|
25
43
|
# -- General configuration ------------------------------------------------
|
|
26
44
|
|
|
@@ -32,6 +50,7 @@ sys.path.insert(0, os.path.abspath('../../edrixs'))
|
|
|
32
50
|
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
|
33
51
|
# ones.
|
|
34
52
|
extensions = [
|
|
53
|
+
'backend_options_directive',
|
|
35
54
|
'sphinx.ext.autodoc',
|
|
36
55
|
'sphinx.ext.autosummary',
|
|
37
56
|
'sphinx.ext.githubpages',
|
|
@@ -69,7 +88,7 @@ source_suffix = '.rst'
|
|
|
69
88
|
master_doc = 'index'
|
|
70
89
|
|
|
71
90
|
# General information about the project.
|
|
72
|
-
project = '
|
|
91
|
+
project = 'EDRIXS'
|
|
73
92
|
copyright = '2019, Brookhaven National Lab'
|
|
74
93
|
author = 'Brookhaven National Lab'
|
|
75
94
|
|
|
@@ -77,11 +96,19 @@ author = 'Brookhaven National Lab'
|
|
|
77
96
|
# |version| and |release|, also used in various other places throughout the
|
|
78
97
|
# built documents.
|
|
79
98
|
#
|
|
80
|
-
#import edrixs
|
|
81
99
|
# The short X.Y version.
|
|
82
|
-
|
|
100
|
+
version = ".".join(edrixs_version.split("+", maxsplit=1)[0].split(".")[:2])
|
|
83
101
|
# The full version, including alpha/beta/rc tags.
|
|
84
|
-
|
|
102
|
+
release = edrixs_version
|
|
103
|
+
|
|
104
|
+
# CI sets this to the documentation channel (for example, ``dev`` or
|
|
105
|
+
# ``0.1.3``). Local builds use the installed package version instead.
|
|
106
|
+
docs_version = os.environ.get("EDRIXS_DOCS_VERSION", release)
|
|
107
|
+
docs_site_root = os.environ.get("EDRIXS_DOCS_SITE_ROOT", "/edrixs/")
|
|
108
|
+
html_context = {
|
|
109
|
+
"docs_version": docs_version,
|
|
110
|
+
"docs_site_root": docs_site_root,
|
|
111
|
+
}
|
|
85
112
|
|
|
86
113
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
|
87
114
|
# for a list of supported languages.
|
|
@@ -121,6 +148,8 @@ html_logo = "EDRIXS_logo.png"
|
|
|
121
148
|
# relative to this directory. They are copied after the builtin static files,
|
|
122
149
|
# so a file named "default.css" will overwrite the builtin "default.css".
|
|
123
150
|
html_static_path = ['_static']
|
|
151
|
+
html_css_files = ['version-switcher.css']
|
|
152
|
+
html_js_files = ['version-switcher.js']
|
|
124
153
|
|
|
125
154
|
# Custom sidebar templates, must be a dictionary that maps document names
|
|
126
155
|
# to template names.
|
|
@@ -165,7 +194,7 @@ latex_elements = {
|
|
|
165
194
|
# (source start file, target name, title,
|
|
166
195
|
# author, documentclass [howto, manual, or own class]).
|
|
167
196
|
latex_documents = [
|
|
168
|
-
(master_doc, 'edrixs.tex', '
|
|
197
|
+
(master_doc, 'edrixs.tex', 'EDRIXS Documentation',
|
|
169
198
|
'Contributors', 'manual'),
|
|
170
199
|
]
|
|
171
200
|
|
|
@@ -175,7 +204,7 @@ latex_documents = [
|
|
|
175
204
|
# One entry per manual page. List of tuples
|
|
176
205
|
# (source start file, name, description, authors, manual section).
|
|
177
206
|
man_pages = [
|
|
178
|
-
(master_doc, 'edrixs', '
|
|
207
|
+
(master_doc, 'edrixs', 'EDRIXS Documentation',
|
|
179
208
|
[author], 1)
|
|
180
209
|
]
|
|
181
210
|
|
|
@@ -186,7 +215,7 @@ man_pages = [
|
|
|
186
215
|
# (source start file, target name, title, author,
|
|
187
216
|
# dir menu entry, description, category)
|
|
188
217
|
texinfo_documents = [
|
|
189
|
-
(master_doc, 'edrixs', '
|
|
218
|
+
(master_doc, 'edrixs', 'EDRIXS Documentation',
|
|
190
219
|
author, 'edrixs', 'An open source toolkit for simulating RIXS spectra based on ED',
|
|
191
220
|
'Miscellaneous'),
|
|
192
221
|
]
|
|
@@ -203,11 +232,10 @@ intersphinx_mapping = {
|
|
|
203
232
|
'matplotlib': ('https://matplotlib.org', None),
|
|
204
233
|
}
|
|
205
234
|
|
|
206
|
-
from sphinx_gallery.sorting import FileNameSortKey
|
|
207
235
|
# sphinx gallery folders
|
|
208
236
|
sphinx_gallery_conf = {
|
|
209
237
|
'examples_dirs': '../../examples/sphinx/', # path to your example scripts
|
|
210
238
|
'filename_pattern': '/example_',
|
|
211
239
|
'gallery_dirs': 'auto_examples', # path to save gallery generated output,
|
|
212
|
-
'within_subsection_order': FileNameSortKey,
|
|
240
|
+
'within_subsection_order': 'FileNameSortKey',
|
|
213
241
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.. _reference:
|
|
2
2
|
|
|
3
3
|
################
|
|
4
|
-
|
|
4
|
+
EDRIXS Reference
|
|
5
5
|
################
|
|
6
6
|
|
|
7
7
|
:Release: |version|
|
|
@@ -23,7 +23,9 @@ included in EDRIXS, describing what they are and what they do.
|
|
|
23
23
|
fock_basis
|
|
24
24
|
iostream
|
|
25
25
|
manybody_operator
|
|
26
|
+
models
|
|
26
27
|
photon_transition
|
|
28
|
+
poles
|
|
27
29
|
plot_spectrum
|
|
28
30
|
rixs_utils
|
|
29
31
|
soc
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
models
|
|
2
|
+
======
|
|
3
|
+
|
|
4
|
+
Model constructors define the physical problem without building many-body
|
|
5
|
+
operators or running solvers. They return eight values: seven inputs describing
|
|
6
|
+
the Hamiltonians, Fock bases, and transition operators, plus a scalar ``shift``
|
|
7
|
+
equal to the filled core's shell-level energy.
|
|
8
|
+
|
|
9
|
+
Pass the first seven outputs to ``get_ops``. For dense, SciPy, or PETSc
|
|
10
|
+
diagonalization, optionally pass ``shift`` to ``ed`` to reduce numerical errors.
|
|
11
|
+
The returned eigenvalues retain their original energy reference, so the shift
|
|
12
|
+
does not change the physics. Fortran ED ignores a nonzero shift with a warning.
|
|
13
|
+
|
|
14
|
+
.. automodule:: edrixs.models
|
|
15
|
+
:members:
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
solvers
|
|
2
|
+
=======
|
|
3
|
+
|
|
4
|
+
``build_op`` returns a zero-argument ``functools.partial`` with a ``.backend``
|
|
5
|
+
attribute. Numerical ``get_ops`` returns these factories for both Hamiltonians
|
|
6
|
+
and each transition component. ``ed`` and ``rixs`` dispatch using
|
|
7
|
+
``hmat_i.backend``; ``xas`` uses ``hmat_n.backend``. The backend receives the
|
|
8
|
+
factories unchanged. All staged backend solvers require factories.
|
|
9
|
+
Dense, SciPy, and PETSc ED construct all inputs at calculation start.
|
|
10
|
+
PETSc XAS and RIXS accept ``matrix_lifetime`` in ``backend_kws``.
|
|
11
|
+
Fortran disk handles are callable, returning themselves; native Fortran manages
|
|
12
|
+
actual matrix construction.
|
|
13
|
+
|
|
14
|
+
Call a numerical factory explicitly to obtain a concrete matrix for arithmetic.
|
|
15
|
+
|
|
16
|
+
.. automodule:: edrixs.solvers
|
|
17
|
+
:members:
|