pyemaps 2.2.0__tar.gz → 2.2.1__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 (133) hide show
  1. {pyemaps-2.2.0 → pyemaps-2.2.1}/MANIFEST.in +1 -0
  2. {pyemaps-2.2.0/pyemaps.egg-info → pyemaps-2.2.1}/PKG-INFO +9 -5
  3. {pyemaps-2.2.0 → pyemaps-2.2.1}/README.md +6 -3
  4. {pyemaps-2.2.0 → pyemaps-2.2.1}/__init__.py +8 -22
  5. {pyemaps-2.2.0 → pyemaps-2.2.1}/__main__.py +9 -22
  6. pyemaps-2.2.1/__version__.py +1 -0
  7. {pyemaps-2.2.0 → pyemaps-2.2.1}/crystals.py +9 -22
  8. {pyemaps-2.2.0 → pyemaps-2.2.1}/ddiffs.py +9 -23
  9. pyemaps-2.2.1/diffract/__init__.py +54 -0
  10. {pyemaps-2.2.0 → pyemaps-2.2.1}/diffract/bloch_dec.py +9 -22
  11. {pyemaps-2.2.0 → pyemaps-2.2.1}/diffract/csf_dec.py +9 -22
  12. {pyemaps-2.2.0 → pyemaps-2.2.1}/diffract/dif_dec.py +9 -22
  13. {pyemaps-2.2.0 → pyemaps-2.2.1}/diffract/dpgen_dec.py +9 -22
  14. {pyemaps-2.2.0 → pyemaps-2.2.1}/diffract/mxtal_dec.py +9 -23
  15. {pyemaps-2.2.0 → pyemaps-2.2.1}/diffract/powder_dec.py +9 -22
  16. {pyemaps-2.2.0 → pyemaps-2.2.1}/diffract/stereo_dec.py +9 -22
  17. {pyemaps-2.2.0 → pyemaps-2.2.1}/display.py +84 -55
  18. {pyemaps-2.2.0 → pyemaps-2.2.1}/emcontrols.py +9 -19
  19. {pyemaps-2.2.0 → pyemaps-2.2.1}/errors.py +8 -22
  20. {pyemaps-2.2.0 → pyemaps-2.2.1}/fileutils.py +8 -22
  21. {pyemaps-2.2.0 → pyemaps-2.2.1}/kdiffs.py +9 -22
  22. pyemaps-2.2.1/license-exception.txt +32 -0
  23. {pyemaps-2.2.0 → pyemaps-2.2.1}/license.txt +17 -9
  24. {pyemaps-2.2.0 → pyemaps-2.2.1}/notebooks/adf.ipynb +46 -46
  25. {pyemaps-2.2.0 → pyemaps-2.2.1}/notebooks/al_ediom.ipynb +38 -38
  26. {pyemaps-2.2.0 → pyemaps-2.2.1}/notebooks/powder.ipynb +33 -33
  27. {pyemaps-2.2.0 → pyemaps-2.2.1}/notebooks/si_bloch.ipynb +54 -54
  28. {pyemaps-2.2.0 → pyemaps-2.2.1}/notebooks/si_constructor.ipynb +34 -34
  29. {pyemaps-2.2.0 → pyemaps-2.2.1}/notebooks/si_csf.ipynb +49 -49
  30. {pyemaps-2.2.0 → pyemaps-2.2.1}/notebooks/si_dif.ipynb +66 -66
  31. {pyemaps-2.2.0 → pyemaps-2.2.1}/notebooks/si_lacbed.ipynb +46 -46
  32. {pyemaps-2.2.0 → pyemaps-2.2.1}/notebooks/si_scm.ipynb +63 -70
  33. {pyemaps-2.2.0 → pyemaps-2.2.1}/notebooks/si_stereo.ipynb +34 -34
  34. {pyemaps-2.2.0 → pyemaps-2.2.1/pyemaps.egg-info}/PKG-INFO +9 -5
  35. {pyemaps-2.2.0 → pyemaps-2.2.1}/pyemaps.egg-info/SOURCES.txt +1 -0
  36. {pyemaps-2.2.0 → pyemaps-2.2.1}/samples/adf.py +5 -9
  37. {pyemaps-2.2.0 → pyemaps-2.2.1}/samples/al_dpgen.py +5 -9
  38. {pyemaps-2.2.0 → pyemaps-2.2.1}/samples/al_ediom.py +5 -9
  39. {pyemaps-2.2.0 → pyemaps-2.2.1}/samples/convert_image.py +5 -9
  40. {pyemaps-2.2.0 → pyemaps-2.2.1}/samples/dm_diff.py +5 -9
  41. {pyemaps-2.2.0 → pyemaps-2.2.1}/samples/powder.py +5 -9
  42. {pyemaps-2.2.0 → pyemaps-2.2.1}/samples/si_bloch.py +5 -9
  43. {pyemaps-2.2.0 → pyemaps-2.2.1}/samples/si_constructor.py +5 -9
  44. {pyemaps-2.2.0 → pyemaps-2.2.1}/samples/si_csf.py +5 -9
  45. {pyemaps-2.2.0 → pyemaps-2.2.1}/samples/si_dif.py +5 -9
  46. {pyemaps-2.2.0 → pyemaps-2.2.1}/samples/si_lacbed.py +5 -9
  47. {pyemaps-2.2.0 → pyemaps-2.2.1}/samples/si_pyemaps.py +5 -9
  48. {pyemaps-2.2.0 → pyemaps-2.2.1}/samples/si_scm.py +5 -9
  49. {pyemaps-2.2.0 → pyemaps-2.2.1}/samples/si_stereo.py +5 -9
  50. pyemaps-2.2.1/scattering/__init__.py +10 -0
  51. pyemaps-2.2.1/scattering/sct_dec.py +18 -0
  52. {pyemaps-2.2.0 → pyemaps-2.2.1}/setup.cfg +1 -1
  53. {pyemaps-2.2.0 → pyemaps-2.2.1}/setup.py +11 -22
  54. pyemaps-2.2.1/spg/__init__.py +10 -0
  55. {pyemaps-2.2.0 → pyemaps-2.2.1}/spg/spg_dec.py +9 -22
  56. {pyemaps-2.2.0 → pyemaps-2.2.1}/stackimg.py +8 -22
  57. {pyemaps-2.2.0 → pyemaps-2.2.1}/xtal.py +9 -23
  58. pyemaps-2.2.0/__version__.py +0 -1
  59. pyemaps-2.2.0/diffract/__init__.py +0 -70
  60. pyemaps-2.2.0/scattering/__init__.py +0 -26
  61. pyemaps-2.2.0/scattering/sct_dec.py +0 -31
  62. pyemaps-2.2.0/spg/__init__.py +0 -25
  63. {pyemaps-2.2.0 → pyemaps-2.2.1}/COPYING +0 -0
  64. {pyemaps-2.2.0 → pyemaps-2.2.1}/CifFile/src/CifFile_module.py +0 -0
  65. {pyemaps-2.2.0 → pyemaps-2.2.1}/CifFile/src/StarFile.py +0 -0
  66. {pyemaps-2.2.0 → pyemaps-2.2.1}/CifFile/src/TypeContentsParser.py +0 -0
  67. {pyemaps-2.2.0 → pyemaps-2.2.1}/CifFile/src/YappsStarParser_1_0.py +0 -0
  68. {pyemaps-2.2.0 → pyemaps-2.2.1}/CifFile/src/YappsStarParser_1_1.py +0 -0
  69. {pyemaps-2.2.0 → pyemaps-2.2.1}/CifFile/src/YappsStarParser_2_0.py +0 -0
  70. {pyemaps-2.2.0 → pyemaps-2.2.1}/CifFile/src/YappsStarParser_STAR2.py +0 -0
  71. {pyemaps-2.2.0 → pyemaps-2.2.1}/CifFile/src/__init__.py +0 -0
  72. {pyemaps-2.2.0 → pyemaps-2.2.1}/CifFile/src/drel/__init__.py +0 -0
  73. {pyemaps-2.2.0 → pyemaps-2.2.1}/CifFile/src/drel/drel_ast_yacc.py +0 -0
  74. {pyemaps-2.2.0 → pyemaps-2.2.1}/CifFile/src/drel/drel_lex.py +0 -0
  75. {pyemaps-2.2.0 → pyemaps-2.2.1}/CifFile/src/drel/drel_runtime.py +0 -0
  76. {pyemaps-2.2.0 → pyemaps-2.2.1}/CifFile/src/drel/parsetab.py +0 -0
  77. {pyemaps-2.2.0 → pyemaps-2.2.1}/CifFile/src/drel/py_from_ast.py +0 -0
  78. {pyemaps-2.2.0 → pyemaps-2.2.1}/CifFile/src/parsetab.py +0 -0
  79. {pyemaps-2.2.0 → pyemaps-2.2.1}/CifFile/src/yapps3_compiled_rt.py +0 -0
  80. {pyemaps-2.2.0 → pyemaps-2.2.1}/__config__.py +0 -0
  81. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/Aluminium.xtl +0 -0
  82. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/AluminiumOxide.xtl +0 -0
  83. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/Aluminium_FCC.xtl +0 -0
  84. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/BariumTitanate_180k.xtl +0 -0
  85. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/BariumTitanate_270k.xtl +0 -0
  86. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/BariumTitanate_Tetra.xtl +0 -0
  87. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/BiMnO3.xtl +0 -0
  88. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/Boron_Tetra.xtl +0 -0
  89. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/CadmiumSelenide_Hex.xtl +0 -0
  90. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/CadmiumSulfide_Cubic.xtl +0 -0
  91. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/CadmiumSulfide_Hex.xtl +0 -0
  92. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/Chromium_BCC.xtl +0 -0
  93. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/CoSb3_Skutterudite.xtl +0 -0
  94. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/CopperOxide.xtl +0 -0
  95. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/Copper_FCC.xtl +0 -0
  96. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/Cu2O_Cuprite.xtl +0 -0
  97. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/Diamond.xtl +0 -0
  98. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/ErbiumPyrogermanate.xtl +0 -0
  99. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/FePd_Tetra.xtl +0 -0
  100. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/FeS2_Pyrite.xtl +0 -0
  101. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/GalliumAntimonide.xtl +0 -0
  102. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/GalliumArsenide.xtl +0 -0
  103. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/GalliumNitride.xtl +0 -0
  104. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/Germanium.xtl +0 -0
  105. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/Gold_FCC.xtl +0 -0
  106. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/IndiumArsenide.xtl +0 -0
  107. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/LaMnO3.xtl +0 -0
  108. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/LeadZirconateTitanate.xtl +0 -0
  109. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/Li2MnO3.xtl +0 -0
  110. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/NaFeO2.xtl +0 -0
  111. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/Nb3Sn.xtl +0 -0
  112. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/Pentacene.xtl +0 -0
  113. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/SiAlONa.xtl +0 -0
  114. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/Silicon.xtl +0 -0
  115. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/StrontiumTitanate.xtl +0 -0
  116. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/TelluriumDioxide.xtl +0 -0
  117. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/TinDioxide_RT.xtl +0 -0
  118. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/TitaniumDioxide_Anatase.xtl +0 -0
  119. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/TitaniumDioxide_Rutile.xtl +0 -0
  120. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/TungstenDiselenide.xtl +0 -0
  121. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/VanadiumDioxide_RT.xtl +0 -0
  122. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/ZincOxide.xtl +0 -0
  123. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/Zinc_HCP.xtl +0 -0
  124. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/ZirconiumNitride.xtl +0 -0
  125. {pyemaps-2.2.0 → pyemaps-2.2.1}/cdata/limno2.xtl +0 -0
  126. {pyemaps-2.2.0 → pyemaps-2.2.1}/pyemaps.egg-info/dependency_links.txt +0 -0
  127. {pyemaps-2.2.0 → pyemaps-2.2.1}/pyemaps.egg-info/entry_points.txt +0 -0
  128. {pyemaps-2.2.0 → pyemaps-2.2.1}/pyemaps.egg-info/requires.txt +0 -0
  129. {pyemaps-2.2.0 → pyemaps-2.2.1}/pyemaps.egg-info/top_level.txt +0 -0
  130. {pyemaps-2.2.0 → pyemaps-2.2.1}/pyproject.toml +0 -0
  131. {pyemaps-2.2.0 → pyemaps-2.2.1}/samples/al.img +0 -0
  132. {pyemaps-2.2.0 → pyemaps-2.2.1}/samples/mask.im3 +0 -0
  133. {pyemaps-2.2.0 → pyemaps-2.2.1}/samples/raw.img +0 -0
@@ -8,6 +8,7 @@ include __config__.py
8
8
  include README.md
9
9
  include COPYING
10
10
  include license.txt
11
+ include license-exception.txt
11
12
 
12
13
  include cdata/*.xtl
13
14
  include samples/*.py
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyemaps
3
- Version: 2.2.0
3
+ Version: 2.2.1
4
4
  Summary: A Python Package for Transmission Electron Diffraction Simulations and Crystallographic Computing
5
5
  Home-page: https://github.com/emlab-solutions/pyemaps
6
6
  Author: EMLab Solutions, Inc.
7
7
  Author-email: support@emlabsoftware.com
8
- License: Free for base features. License activation required for extended 4dstem features
8
+ License: GPL-3.0-or-later, with the linking exception for emaps in license-exception.txt. emaps' 4D-STEM features need a license.
9
9
  Project-URL: Documentation, https://emlab-solutions.github.io/pyemaps/
10
10
  Project-URL: Source, https://github.com/emlab-solutions/pyemaps
11
11
  Project-URL: Issues, https://github.com/emlab-solutions/pyemaps/issues
@@ -21,6 +21,7 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
21
21
  Classifier: Intended Audience :: Science/Research
22
22
  Requires-Python: >=3.12
23
23
  Description-Content-Type: text/markdown
24
+ License-File: license-exception.txt
24
25
  License-File: license.txt
25
26
  License-File: COPYING
26
27
  Requires-Dist: emaps>=2.0.1
@@ -134,9 +135,12 @@ gallery and the full API reference.
134
135
 
135
136
  ## Licensing
136
137
 
137
- The base features are free software under the
138
- [GNU General Public License v3.0](https://emlab-solutions.github.io/pyemaps/license.html), for
139
- personal and commercial use. The extended 4D-STEM features need a license:
138
+ pyEMAPS is free software under the
139
+ [GNU General Public License v3.0 or later](https://emlab-solutions.github.io/pyemaps/license.html),
140
+ for personal and commercial use, with a linking exception
141
+ ([license-exception.txt](https://github.com/emlab-solutions/pyemaps/blob/main/license-exception.txt))
142
+ that allows its use with emaps, the proprietary simulation engine it runs on. emaps' 4D-STEM
143
+ features need a license:
140
144
 
141
145
  - `pyemaps --license trial` activates a 7-day trial license. It needs an internet connection.
142
146
  - `pyemaps --license <token>` activates a trial or production license with a license activation
@@ -99,9 +99,12 @@ gallery and the full API reference.
99
99
 
100
100
  ## Licensing
101
101
 
102
- The base features are free software under the
103
- [GNU General Public License v3.0](https://emlab-solutions.github.io/pyemaps/license.html), for
104
- personal and commercial use. The extended 4D-STEM features need a license:
102
+ pyEMAPS is free software under the
103
+ [GNU General Public License v3.0 or later](https://emlab-solutions.github.io/pyemaps/license.html),
104
+ for personal and commercial use, with a linking exception
105
+ ([license-exception.txt](https://github.com/emlab-solutions/pyemaps/blob/main/license-exception.txt))
106
+ that allows its use with emaps, the proprietary simulation engine it runs on. emaps' 4D-STEM
107
+ features need a license:
105
108
 
106
109
  - `pyemaps --license trial` activates a 7-day trial license. It needs an internet connection.
107
110
  - `pyemaps --license <token>` activates a trial or production license with a license activation
@@ -1,29 +1,15 @@
1
+ # This file is part of pyEMAPS.
2
+ # Copyright (C) 2021-2026 EMLab Solutions, Inc.
3
+ #
4
+ # SPDX-License-Identifier: GPL-3.0-or-later
5
+ #
6
+ # Additional permission under GPLv3 Section 7:
7
+ # See license-exception.txt for the exception permitting
8
+ # combination with the separately licensed backend, emaps.
1
9
 
2
10
  """
3
- .. This file is part of pyEMAPS
4
-
5
- .. ----
6
-
7
- .. pyEMAPS is free software. You can redistribute it and/or modify
8
- .. it under the terms of the GNU General Public License as published
9
- .. by the Free Software Foundation, either version 3 of the License,
10
- .. or (at your option) any later version..
11
-
12
- .. pyEMAPS is distributed in the hope that it will be useful,
13
- .. but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- .. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- .. GNU General Public License for more details.
16
-
17
- .. You should have received a copy of the GNU General Public License
18
- .. along with pyEMAPS. If not, see `<https://www.gnu.org/licenses/>`_.
19
-
20
- .. Contact supprort@emlabsoftware.com for any questions and comments.
21
-
22
- .. ----
23
-
24
11
  .. Author: EMLab Solutions, Inc.
25
12
  .. Date: May 07, 2022
26
-
27
13
  """
28
14
 
29
15
 
@@ -1,28 +1,15 @@
1
- '''
2
- .. This file is part of pyEMAPS
3
-
4
- .. ----
5
-
6
- .. pyEMAPS is free software. You can redistribute it and/or modify
7
- .. it under the terms of the GNU General Public License as published
8
- .. by the Free Software Foundation, either version 3 of the License,
9
- .. or (at your option) any later version..
10
-
11
- .. pyEMAPS is distributed in the hope that it will be useful,
12
- .. but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- .. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- .. GNU General Public License for more details.
15
-
16
- .. You should have received a copy of the GNU General Public License
17
- .. along with pyEMAPS. If not, see `<https://www.gnu.org/licenses/>`_.
18
-
19
- .. Contact supprort@emlabsoftware.com for any questions and comments.
20
-
21
- .. ----
1
+ # This file is part of pyEMAPS.
2
+ # Copyright (C) 2021-2026 EMLab Solutions, Inc.
3
+ #
4
+ # SPDX-License-Identifier: GPL-3.0-or-later
5
+ #
6
+ # Additional permission under GPLv3 Section 7:
7
+ # See license-exception.txt for the exception permitting
8
+ # combination with the separately licensed backend, emaps.
22
9
 
10
+ '''
23
11
  .. Author: EMLab Solutions, Inc.
24
12
  .. Date: May 07, 2022
25
-
26
13
  '''
27
14
 
28
15
  rel_stage = 'Stable'
@@ -0,0 +1 @@
1
+ __version__ = "2.2.1"
@@ -1,28 +1,15 @@
1
- '''
2
- .. This file is part of pyEMAPS
3
-
4
- .. ----
5
-
6
- .. pyEMAPS is free software. You can redistribute it and/or modify
7
- .. it under the terms of the GNU General Public License as published
8
- .. by the Free Software Foundation, either version 3 of the License,
9
- .. or (at your option) any later version..
10
-
11
- .. pyEMAPS is distributed in the hope that it will be useful,
12
- .. but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- .. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- .. GNU General Public License for more details.
15
-
16
- .. You should have received a copy of the GNU General Public License
17
- .. along with pyEMAPS. If not, see `<https://www.gnu.org/licenses/>`_.
18
-
19
- .. Contact supprort@emlabsoftware.com for any questions and comments.
20
-
21
- .. ----
1
+ # This file is part of pyEMAPS.
2
+ # Copyright (C) 2021-2026 EMLab Solutions, Inc.
3
+ #
4
+ # SPDX-License-Identifier: GPL-3.0-or-later
5
+ #
6
+ # Additional permission under GPLv3 Section 7:
7
+ # See license-exception.txt for the exception permitting
8
+ # combination with the separately licensed backend, emaps.
22
9
 
10
+ '''
23
11
  .. Author: EMLab Solutions, Inc.
24
12
  .. Date Created: May 07, 2022
25
-
26
13
  '''
27
14
 
28
15
  from enum import Enum
@@ -1,29 +1,15 @@
1
- '''
2
-
3
- .. This file is part of pyEMAPS
4
-
5
- .. ----
6
-
7
- .. pyEMAPS is free software. You can redistribute it and/or modify
8
- .. it under the terms of the GNU General Public License as published
9
- .. by the Free Software Foundation, either version 3 of the License,
10
- .. or (at your option) any later version..
11
-
12
- .. pyEMAPS is distributed in the hope that it will be useful,
13
- .. but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- .. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- .. GNU General Public License for more details.
16
-
17
- .. You should have received a copy of the GNU General Public License
18
- .. along with pyEMAPS. If not, see `<https://www.gnu.org/licenses/>`_.
19
-
20
- .. Contact supprort@emlabsoftware.com for any questions and comments.
21
-
22
- .. ----
1
+ # This file is part of pyEMAPS.
2
+ # Copyright (C) 2021-2026 EMLab Solutions, Inc.
3
+ #
4
+ # SPDX-License-Identifier: GPL-3.0-or-later
5
+ #
6
+ # Additional permission under GPLv3 Section 7:
7
+ # See license-exception.txt for the exception permitting
8
+ # combination with the separately licensed backend, emaps.
23
9
 
10
+ '''
24
11
  .. Author: EMLab Solutions, Inc.
25
12
  .. Date: July 17, 2022
26
-
27
13
  '''
28
14
 
29
15
  from . import EMC
@@ -0,0 +1,54 @@
1
+ # This file is part of pyEMAPS.
2
+ # Copyright (C) 2021-2026 EMLab Solutions, Inc.
3
+ #
4
+ # SPDX-License-Identifier: GPL-3.0-or-later
5
+ #
6
+ # Additional permission under GPLv3 Section 7:
7
+ # See license-exception.txt for the exception permitting
8
+ # combination with the separately licensed backend, emaps.
9
+ # import all pyemaps simulation modules
10
+ try:
11
+ from emaps import dif
12
+ except ImportError as e:
13
+ print(f'Failed to find pyemas simulation modules')
14
+ print(f'Please make sure emaps python package is installed')
15
+ raise ValueError('')
16
+
17
+ #check other modules existence
18
+ try:
19
+ from emaps import dpgen
20
+
21
+ except ImportError as e:
22
+ pass
23
+
24
+ try:
25
+ from emaps import csf
26
+
27
+ except ImportError as e:
28
+ pass
29
+
30
+ try:
31
+ from emaps import powder
32
+
33
+ except ImportError as e:
34
+ pass
35
+
36
+ try:
37
+ from emaps import bloch
38
+
39
+ except ImportError as e:
40
+ pass
41
+
42
+ try:
43
+ from emaps import stereo
44
+
45
+ except ImportError as e:
46
+ pass
47
+
48
+
49
+ try:
50
+ from emaps import mxtal
51
+
52
+ except ImportError as e:
53
+ print(f'no mxtal module found in simulation module')
54
+
@@ -1,28 +1,15 @@
1
- '''
2
- .. This file is part of pyEMAPS
3
-
4
- .. ----
5
-
6
- .. pyEMAPS is free software. You can redistribute it and/or modify
7
- .. it under the terms of the GNU General Public License as published
8
- .. by the Free Software Foundation, either version 3 of the License,
9
- .. or (at your option) any later version..
10
-
11
- .. pyEMAPS is distributed in the hope that it will be useful,
12
- .. but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- .. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- .. GNU General Public License for more details.
15
-
16
- .. You should have received a copy of the GNU General Public License
17
- .. along with pyEMAPS. If not, see `<https://www.gnu.org/licenses/>`_.
18
-
19
- .. Contact supprort@emlabsoftware.com for any questions and comments.
20
-
21
- .. ----
1
+ # This file is part of pyEMAPS.
2
+ # Copyright (C) 2021-2026 EMLab Solutions, Inc.
3
+ #
4
+ # SPDX-License-Identifier: GPL-3.0-or-later
5
+ #
6
+ # Additional permission under GPLv3 Section 7:
7
+ # See license-exception.txt for the exception permitting
8
+ # combination with the separately licensed backend, emaps.
22
9
 
10
+ '''
23
11
  .. Author: EMLab Solutions, Inc.
24
12
  .. Date Created: May 07, 2022
25
-
26
13
  '''
27
14
  def add_bloch(target):
28
15
  """
@@ -1,28 +1,15 @@
1
- '''
2
- .. This file is part of pyEMAPS
3
-
4
- .. ----
5
-
6
- .. pyEMAPS is free software. You can redistribute it and/or modify
7
- .. it under the terms of the GNU General Public License as published
8
- .. by the Free Software Foundation, either version 3 of the License,
9
- .. or (at your option) any later version..
10
-
11
- .. pyEMAPS is distributed in the hope that it will be useful,
12
- .. but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- .. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- .. GNU General Public License for more details.
15
-
16
- .. You should have received a copy of the GNU General Public License
17
- .. along with pyEMAPS. If not, see `<https://www.gnu.org/licenses/>`_.
18
-
19
- .. Contact supprort@emlabsoftware.com for any questions and comments.
20
-
21
- .. ----
1
+ # This file is part of pyEMAPS.
2
+ # Copyright (C) 2021-2026 EMLab Solutions, Inc.
3
+ #
4
+ # SPDX-License-Identifier: GPL-3.0-or-later
5
+ #
6
+ # Additional permission under GPLv3 Section 7:
7
+ # See license-exception.txt for the exception permitting
8
+ # combination with the separately licensed backend, emaps.
22
9
 
10
+ '''
23
11
  .. Author: EMLab Solutions, Inc.
24
12
  .. Date Created: May 07, 2022
25
-
26
13
  '''
27
14
  def add_csf(target):
28
15
  '''
@@ -1,28 +1,15 @@
1
- '''
2
- .. This file is part of pyEMAPS
3
-
4
- .. ----
5
-
6
- .. pyEMAPS is free software. You can redistribute it and/or modify
7
- .. it under the terms of the GNU General Public License as published
8
- .. by the Free Software Foundation, either version 3 of the License,
9
- .. or (at your option) any later version..
10
-
11
- .. pyEMAPS is distributed in the hope that it will be useful,
12
- .. but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- .. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- .. GNU General Public License for more details.
15
-
16
- .. You should have received a copy of the GNU General Public License
17
- .. along with pyEMAPS. If not, see `<https://www.gnu.org/licenses/>`_.
18
-
19
- .. Contact supprort@emlabsoftware.com for any questions and comments.
20
-
21
- .. ----
1
+ # This file is part of pyEMAPS.
2
+ # Copyright (C) 2021-2026 EMLab Solutions, Inc.
3
+ #
4
+ # SPDX-License-Identifier: GPL-3.0-or-later
5
+ #
6
+ # Additional permission under GPLv3 Section 7:
7
+ # See license-exception.txt for the exception permitting
8
+ # combination with the separately licensed backend, emaps.
22
9
 
10
+ '''
23
11
  .. Author: EMLab Solutions, Inc.
24
12
  .. Date Created: May 07, 2022
25
-
26
13
  '''
27
14
  import weakref
28
15
 
@@ -1,28 +1,15 @@
1
- '''
2
- .. This file is part of pyEMAPS
3
-
4
- .. ----
5
-
6
- .. pyEMAPS is free software. You can redistribute it and/or modify
7
- .. it under the terms of the GNU General Public License as published
8
- .. by the Free Software Foundation, either version 3 of the License,
9
- .. or (at your option) any later version..
10
-
11
- .. pyEMAPS is distributed in the hope that it will be useful,
12
- .. but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- .. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- .. GNU General Public License for more details.
15
-
16
- .. You should have received a copy of the GNU General Public License
17
- .. along with pyEMAPS. If not, see `<https://www.gnu.org/licenses/>`_.
18
-
19
- .. Contact supprort@emlabsoftware.com for any questions and comments.
20
-
21
- .. ----
1
+ # This file is part of pyEMAPS.
2
+ # Copyright (C) 2021-2026 EMLab Solutions, Inc.
3
+ #
4
+ # SPDX-License-Identifier: GPL-3.0-or-later
5
+ #
6
+ # Additional permission under GPLv3 Section 7:
7
+ # See license-exception.txt for the exception permitting
8
+ # combination with the separately licensed backend, emaps.
22
9
 
10
+ '''
23
11
  .. Author: EMLab Solutions, Inc.
24
12
  .. Date Created: May 07, 2022
25
-
26
13
  '''
27
14
  def add_dpgen(target):
28
15
  try:
@@ -1,29 +1,15 @@
1
- '''
2
- .. This file is part of pyEMAPS
3
-
4
- .. ----
5
-
6
- .. pyEMAPS is free software. You can redistribute it and/or modify
7
- .. it under the terms of the GNU General Public License as published
8
- .. by the Free Software Foundation, either version 3 of the License,
9
- .. or (at your option) any later version..
10
-
11
- .. pyEMAPS is distributed in the hope that it will be useful,
12
- .. but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- .. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- .. GNU General Public License for more details.
15
-
16
- .. You should have received a copy of the GNU General Public License
17
- .. along with pyEMAPS. If not, see `<https://www.gnu.org/licenses/>`_.
18
-
19
- .. Contact supprort@emlabsoftware.com for any questions and comments.
20
-
21
- .. ----
22
-
1
+ # This file is part of pyEMAPS.
2
+ # Copyright (C) 2021-2026 EMLab Solutions, Inc.
3
+ #
4
+ # SPDX-License-Identifier: GPL-3.0-or-later
5
+ #
6
+ # Additional permission under GPLv3 Section 7:
7
+ # See license-exception.txt for the exception permitting
8
+ # combination with the separately licensed backend, emaps.
23
9
 
10
+ '''
24
11
  Author: EMLab Solutions, Inc.
25
12
  Date Created: May 07, 2022
26
-
27
13
  '''
28
14
  def add_mxtal(target):
29
15
  from . import dif
@@ -1,28 +1,15 @@
1
- '''
2
- .. This file is part of pyEMAPS
3
-
4
- .. ----
5
-
6
- .. pyEMAPS is free software. You can redistribute it and/or modify
7
- .. it under the terms of the GNU General Public License as published
8
- .. by the Free Software Foundation, either version 3 of the License,
9
- .. or (at your option) any later version..
10
-
11
- .. pyEMAPS is distributed in the hope that it will be useful,
12
- .. but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- .. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- .. GNU General Public License for more details.
15
-
16
- .. You should have received a copy of the GNU General Public License
17
- .. along with pyEMAPS. If not, see `<https://www.gnu.org/licenses/>`_.
18
-
19
- .. Contact supprort@emlabsoftware.com for any questions and comments.
20
-
21
- .. ----
1
+ # This file is part of pyEMAPS.
2
+ # Copyright (C) 2021-2026 EMLab Solutions, Inc.
3
+ #
4
+ # SPDX-License-Identifier: GPL-3.0-or-later
5
+ #
6
+ # Additional permission under GPLv3 Section 7:
7
+ # See license-exception.txt for the exception permitting
8
+ # combination with the separately licensed backend, emaps.
22
9
 
10
+ '''
23
11
  .. Author: EMLab Solutions, Inc.
24
12
  .. Date Created: May 07, 2022
25
-
26
13
  '''
27
14
  def add_powder(target):
28
15
 
@@ -1,28 +1,15 @@
1
- '''
2
- .. This file is part of pyEMAPS
3
-
4
- .. ----
5
-
6
- .. pyEMAPS is free software. You can redistribute it and/or modify
7
- .. it under the terms of the GNU General Public License as published
8
- .. by the Free Software Foundation, either version 3 of the License,
9
- .. or (at your option) any later version..
10
-
11
- .. pyEMAPS is distributed in the hope that it will be useful,
12
- .. but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- .. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- .. GNU General Public License for more details.
15
-
16
- .. You should have received a copy of the GNU General Public License
17
- .. along with pyEMAPS. If not, see `<https://www.gnu.org/licenses/>`_.
18
-
19
- .. Contact supprort@emlabsoftware.com for any questions and comments.
20
-
21
- .. ----
1
+ # This file is part of pyEMAPS.
2
+ # Copyright (C) 2021-2026 EMLab Solutions, Inc.
3
+ #
4
+ # SPDX-License-Identifier: GPL-3.0-or-later
5
+ #
6
+ # Additional permission under GPLv3 Section 7:
7
+ # See license-exception.txt for the exception permitting
8
+ # combination with the separately licensed backend, emaps.
22
9
 
10
+ '''
23
11
  .. Author: EMLab Solutions, Inc.
24
12
  .. Date Created: May 07, 2022
25
-
26
13
  '''
27
14
  def add_stereo(target):
28
15
  def generateStereo(self, xa = (0,2,0),