SMACT 2.5.5__tar.gz → 2.7__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 (64) hide show
  1. {SMACT-2.5.5/SMACT.egg-info → smact-2.7}/PKG-INFO +39 -48
  2. {SMACT-2.5.5 → smact-2.7}/README.md +32 -42
  3. {SMACT-2.5.5 → smact-2.7/SMACT.egg-info}/PKG-INFO +39 -48
  4. {SMACT-2.5.5 → smact-2.7}/SMACT.egg-info/SOURCES.txt +7 -1
  5. smact-2.7/SMACT.egg-info/requires.txt +8 -0
  6. {SMACT-2.5.5 → smact-2.7}/setup.py +14 -10
  7. {SMACT-2.5.5 → smact-2.7}/smact/__init__.py +42 -2
  8. smact-2.7/smact/data/element_valence_modified.csv +98 -0
  9. smact-2.7/smact/data/magpie.csv +98 -0
  10. smact-2.7/smact/data/species_rep/skipspecies_20221028_319ion_dim200_cosine_similarity.json +1 -0
  11. {SMACT-2.5.5 → smact-2.7}/smact/data_loader.py +133 -0
  12. smact-2.7/smact/dopant_prediction/doper.py +436 -0
  13. {SMACT-2.5.5 → smact-2.7}/smact/properties.py +46 -0
  14. {SMACT-2.5.5 → smact-2.7}/smact/screening.py +130 -19
  15. {SMACT-2.5.5 → smact-2.7}/smact/tests/test_core.py +54 -1
  16. smact-2.7/smact/tests/test_doper.py +82 -0
  17. smact-2.7/smact/tests/test_utils.py +76 -0
  18. smact-2.7/smact/utils/__init__.py +1 -0
  19. smact-2.7/smact/utils/composition.py +97 -0
  20. SMACT-2.5.5/SMACT.egg-info/requires.txt +0 -7
  21. SMACT-2.5.5/smact/dopant_prediction/doper.py +0 -212
  22. SMACT-2.5.5/smact/tests/test_doper.py +0 -50
  23. {SMACT-2.5.5 → smact-2.7}/LICENSE +0 -0
  24. {SMACT-2.5.5 → smact-2.7}/MANIFEST.in +0 -0
  25. {SMACT-2.5.5 → smact-2.7}/SMACT.egg-info/dependency_links.txt +0 -0
  26. {SMACT-2.5.5 → smact-2.7}/SMACT.egg-info/not-zip-safe +0 -0
  27. {SMACT-2.5.5 → smact-2.7}/SMACT.egg-info/top_level.txt +0 -0
  28. {SMACT-2.5.5 → smact-2.7}/pyproject.toml +0 -0
  29. {SMACT-2.5.5 → smact-2.7}/setup.cfg +0 -0
  30. {SMACT-2.5.5 → smact-2.7}/smact/builder.py +0 -0
  31. {SMACT-2.5.5 → smact-2.7}/smact/data/Covalent_radii.csv +0 -0
  32. {SMACT-2.5.5 → smact-2.7}/smact/data/HHIs.txt +0 -0
  33. {SMACT-2.5.5 → smact-2.7}/smact/data/SSE.csv +0 -0
  34. {SMACT-2.5.5 → smact-2.7}/smact/data/SSE_2015.csv +0 -0
  35. {SMACT-2.5.5 → smact-2.7}/smact/data/SSE_Pauling.csv +0 -0
  36. {SMACT-2.5.5 → smact-2.7}/smact/data/element_data.txt +0 -0
  37. {SMACT-2.5.5 → smact-2.7}/smact/data/ionic_radii.csv +0 -0
  38. {SMACT-2.5.5 → smact-2.7}/smact/data/ordered_periodic.txt +0 -0
  39. {SMACT-2.5.5 → smact-2.7}/smact/data/oxidation_state_probability_table.json +0 -0
  40. {SMACT-2.5.5 → smact-2.7}/smact/data/oxidation_states.txt +0 -0
  41. {SMACT-2.5.5 → smact-2.7}/smact/data/oxidation_states_SP.txt +0 -0
  42. {SMACT-2.5.5 → smact-2.7}/smact/data/oxidation_states_icsd.txt +0 -0
  43. {SMACT-2.5.5 → smact-2.7}/smact/data/oxidation_states_pmg.txt +0 -0
  44. {SMACT-2.5.5 → smact-2.7}/smact/data/oxidation_states_wiki.txt +0 -0
  45. {SMACT-2.5.5 → smact-2.7}/smact/data/oxidationstates.data +0 -0
  46. {SMACT-2.5.5 → smact-2.7}/smact/data/shannon_radii.csv +0 -0
  47. {SMACT-2.5.5 → smact-2.7}/smact/data/shannon_radii_ML_extended.csv +0 -0
  48. {SMACT-2.5.5 → smact-2.7}/smact/data/solid_properties.txt +0 -0
  49. {SMACT-2.5.5 → smact-2.7}/smact/data/solid_properties.xlsx +0 -0
  50. {SMACT-2.5.5 → smact-2.7}/smact/distorter.py +0 -0
  51. {SMACT-2.5.5 → smact-2.7}/smact/dopant_prediction/__init__.py +0 -0
  52. {SMACT-2.5.5 → smact-2.7}/smact/lattice.py +0 -0
  53. {SMACT-2.5.5 → smact-2.7}/smact/lattice_parameters.py +0 -0
  54. {SMACT-2.5.5 → smact-2.7}/smact/mainpage.py +0 -0
  55. {SMACT-2.5.5 → smact-2.7}/smact/oxidation_states.py +0 -0
  56. {SMACT-2.5.5 → smact-2.7}/smact/structure_prediction/__init__.py +0 -0
  57. {SMACT-2.5.5 → smact-2.7}/smact/structure_prediction/database.py +0 -0
  58. {SMACT-2.5.5 → smact-2.7}/smact/structure_prediction/mutation.py +0 -0
  59. {SMACT-2.5.5 → smact-2.7}/smact/structure_prediction/prediction.py +0 -0
  60. {SMACT-2.5.5 → smact-2.7}/smact/structure_prediction/probability_models.py +0 -0
  61. {SMACT-2.5.5 → smact-2.7}/smact/structure_prediction/structure.py +0 -0
  62. {SMACT-2.5.5 → smact-2.7}/smact/structure_prediction/utilities.py +0 -0
  63. {SMACT-2.5.5 → smact-2.7}/smact/tests/__init__.py +0 -0
  64. {SMACT-2.5.5 → smact-2.7}/smact/tests/test_structure.py +0 -0
@@ -1,34 +1,35 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: SMACT
3
- Version: 2.5.5
3
+ Version: 2.7
4
4
  Summary: Semiconducting Materials by Analogy and Chemical Theory
5
5
  Home-page: https://github.com/WMD-group/SMACT
6
- Author: Daniel W. Davies
7
- Author-email: d.w.davies@imperial.ac.uk
6
+ Author: The SMACT Developers
7
+ Author-email: a.walsh@imperial.ac.uk
8
8
  Maintainer: Anthony O. Onwuli
9
9
  Maintainer-email: anthony.onwuli16@imperial.ac.uk
10
10
  License: MIT
11
11
  Classifier: Programming Language :: Python :: 3
12
- Classifier: Programming Language :: Python :: 3.8
13
12
  Classifier: Programming Language :: Python :: 3.9
14
13
  Classifier: Programming Language :: Python :: 3.10
15
14
  Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
16
  Classifier: Development Status :: 5 - Production/Stable
17
17
  Classifier: Intended Audience :: Science/Research
18
18
  Classifier: Operating System :: OS Independent
19
19
  Classifier: License :: OSI Approved :: MIT License
20
20
  Classifier: Topic :: Scientific/Engineering
21
21
  Classifier: Topic :: Scientific/Engineering :: Chemistry
22
- Requires-Python: >=3.8
22
+ Requires-Python: >=3.9
23
23
  Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
25
  Requires-Dist: scipy
26
- Requires-Dist: numpy
26
+ Requires-Dist: numpy<2
27
27
  Requires-Dist: spglib
28
- Requires-Dist: pymatgen
28
+ Requires-Dist: pymatgen<2024.8.8,>=2024.2.20
29
29
  Requires-Dist: ase
30
30
  Requires-Dist: pandas
31
31
  Requires-Dist: pathos
32
+ Requires-Dist: typing-extensions
32
33
 
33
34
  [![DOI](http://joss.theoj.org/papers/10.21105/joss.01361/status.svg)](https://doi.org/10.21105/joss.01361)
34
35
  [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5553202.svg)](https://doi.org/10.5281/zenodo.5553202)
@@ -47,10 +48,10 @@ Requires-Dist: pathos
47
48
  SMACT
48
49
  =====
49
50
 
50
- **Semiconducting Materials from Analogy and Chemical Theory** (SMACT) is a collection of rapid screening tools that uses data about chemical elements.
51
+ **Semiconducting Materials from Analogy and Chemical Theory** (SMACT) is a collection of rapid screening and informatics tools that uses data about chemical elements.
51
52
 
52
53
  - **Documentation:** https://smact.readthedocs.io/en/latest/
53
- - **Examples folder:** https://github.com/WMD-group/SMACT/tree/master/examples
54
+ - **Examples:** https://github.com/WMD-group/SMACT/tree/master/examples
54
55
 
55
56
  ![](SMACT.png)
56
57
 
@@ -58,18 +59,13 @@ SMACT
58
59
 
59
60
  Statement of need
60
61
  --------
61
- There is a strong demand for functional materials across a wide range of technologies. The motivation can include cost reduction, performance enhancement, or to enable a new application. Data collections such as the [Materials Project](https://www.materialsproject.org), [NREL Materials Database](http://materials.nrel.gov) and the [Open Quantum Materials Database](http://oqmd.org) are valuable resources, but they largely cover the properties of *known* compounds as calculated using high-level quantum mechanical theories.
62
-
63
- We have developed low-cost procedures for screening hypothetical materials in SMACT. This framework can be used for simple calculations on your own computer. SMACT follows a top-down approach where a set of element combinations is generated and then screened using rapid chemical filters. It can be used as part of a multi-technique workflow or to feed machine learning models for materials.
64
-
62
+ There is a strong demand for functional materials across a wide range of technologies. The motivation can include cost reduction, performance enhancement, or to enable a new application. We have developed low-cost procedures for screening hypothetical materials. This framework can be used for simple calculations on your own computer. SMACT follows a top-down approach where a set of element combinations is generated and then screened using rapid chemical filters. It can be used as part of a multi-technique workflow or to feed machine learning models for materials.
65
63
 
66
64
  ![](smact_simple.gif)
67
65
 
68
-
69
66
  Getting started
70
67
  -----
71
-
72
- SMACT's features are accessed through Python scripts, importing classes and functions as needed.
68
+ Features are accessed through Python scripts, importing classes and functions as needed.
73
69
  The best place to start is looking at [the docs](https://smact.readthedocs.io/en/latest/), which highlight some simple examples of how these classes and functions can be used.
74
70
  Extended examples are available in [our examples folder](https://github.com/WMD-group/SMACT/tree/master/examples).
75
71
 
@@ -77,9 +73,9 @@ Code features
77
73
  --------
78
74
  - At the core of SMACT are [Element](https://smact.readthedocs.io/en/latest/smact.html#smact.Element) and [Species](https://smact.readthedocs.io/en/latest/smact.html#smact.Species) (element in a given oxidation state) classes that have various properties associated with them.
79
75
 
80
- - The various oxidation states that are accessible to each element are included in their properties.
76
+ - Oxidation states that are accessible to each element are included in their properties.
81
77
 
82
- - Element compositions can be screened through based on the heuristic filters of charge neutrality and electronegativity order. This is handled using the [screening module](https://smact.readthedocs.io/en/latest/smact.screening.html) and [this publication](https://www.cell.com/chem/fulltext/S2451-9294(16)30155-3) describes the underlying theory. An example procedure is [outlined in the docs](https://smact.readthedocs.io/en/latest/examples.html#neutral-combinations) and further examples can be found in the [counting examples subfolder](https://github.com/WMD-group/SMACT/tree/master/examples/Counting).
78
+ - Element compositions can be screened through based on the heuristic filters of charge neutrality and electronegativity order. This is handled using the [screening module](https://smact.readthedocs.io/en/latest/smact.screening.html) and [this publication](https://www.cell.com/chem/fulltext/S2451-9294(16)30155-3) describes the underlying theory. An example procedure is [outlined in the docs](https://smact.readthedocs.io/en/latest/examples.html#neutral-combinations) and more examples can be found in the [counting examples subfolder](https://github.com/WMD-group/SMACT/tree/master/examples/Counting).
83
79
 
84
80
  - Further filters can be applied to generated lists of compositions in order to screen for particular properties. These properties are either intrinsic properties of elements or are calculated for compositions using the [properties module](https://smact.readthedocs.io/en/latest/smact.properties.html). For example:
85
81
  - A use case is shown in [this publication](https://pubs.rsc.org/en/content/articlehtml/2018/sc/c7sc03961a), in which 160,000 chemical compositions are screened based on optical band gap calculated using the [solid-state energy scale](https://www.sciencedirect.com/science/article/pii/S0022459615300888).
@@ -87,18 +83,17 @@ Code features
87
83
 
88
84
  - Compositions can also be filtered based on sustainability via the abundance of elements in the Earth's crust or via the [HHI scale](https://pubs.acs.org/doi/10.1021/cm400893e).
89
85
 
90
- - Compositions can easily be converted for use in Pymatgen or for representation to machine learning algorithms ([see "next steps" in this example](https://github.com/WMD-group/SMACT/blob/master/examples/Counting/Generate_compositions_lists.ipynb)).
86
+ - Compositions can be converted for use in Pymatgen or for representation to machine learning algorithms ([see "next steps" in this example](https://github.com/WMD-group/SMACT/blob/master/examples/Counting/Generate_compositions_lists.ipynb)) and the related [ElementEmbeddings](https://github.com/WMD-group/ElementEmbeddings) package.
91
87
 
92
- - The code also has some tools for manipulating common crystal lattice types:
93
- - Common crystal structure types can be built using the [builder module](https://smact.readthedocs.io/en/latest/smact.builder.html)
94
- - Lattice parameters can be quickly estimated using ionic radii of the elements for various common crystal structure types using the [lattice_parameters module](https://smact.readthedocs.io/en/latest/smact.lattice_parameters.html).
95
- - The [lattice module](https://smact.readthedocs.io/en/latest/smact.lattice.html) and [distorter module](https://smact.readthedocs.io/en/latest/smact.distorter.html) rely on the [Atomic Simulation Environment](https://wiki.fysik.dtu.dk/ase/) and can be used to generate unique atomic substitutions on a given crystal structure.
96
- - The [structure prediction](https://smact.readthedocs.io/en/latest/smact.structure_prediction.html) module can be used to predict the structure of hypothetical compositions using species similarity measures.
97
- - The [dopant prediction](https://smact.readthedocs.io/en/latest/smact.dopant_prediction.html) module can be used to facilitate high-throughput predictions of p-type and n-type dopants of multicomponent solids.
88
+ - The code also has tools for manipulating common crystal lattice types:
89
+ - Certain structure types can be built using the [builder module](https://smact.readthedocs.io/en/latest/smact.builder.html)
90
+ - Lattice parameters can be estimated using ionic radii of the elements for various common crystal structure types using the [lattice_parameters module](https://smact.readthedocs.io/en/latest/smact.lattice_parameters.html).
91
+ - The [lattice module](https://smact.readthedocs.io/en/latest/smact.lattice.html) and [distorter module](https://smact.readthedocs.io/en/latest/smact.distorter.html) rely on the [Atomic Simulation Environment](https://wiki.fysik.dtu.dk/ase/) and can be used to generate unique atomic substitutions on a given crystal structure.
92
+ - The [structure prediction](https://smact.readthedocs.io/en/latest/smact.structure_prediction.html) module can be used to predict the structure of hypothetical compositions using species similarity measures.
93
+ - The [dopant prediction](https://smact.readthedocs.io/en/latest/smact.dopant_prediction.html) module can be used to facilitate high-throughput predictions of p-type and n-type dopants of multicomponent solids.
98
94
 
99
95
  List of modules
100
96
  -------
101
-
102
97
  * **smact** library containing:
103
98
  * **\_\_init\_\_.py** Contains the core `Element` and `Species` classes.
104
99
  * **data_loader.py** Handles the loading of external data used to initialise the core `smact.Element` and `smact.Species` classes.
@@ -106,7 +101,7 @@ List of modules
106
101
  * **properties.py** A collection of tools for estimating useful properties based on composition.
107
102
  * **lattice.py** Given the sites, multiplicities and possible oxidation states
108
103
  at those sites, this reads from the database and generates all possible
109
- stoichiometeries.
104
+ stoichiometries.
110
105
  * **builder.py** Builds some common lattice structures, given the chemical
111
106
  composition.
112
107
  * **lattice_parameters.py** Estimation of lattice parameters for various lattice types using covalent/ionic radii.
@@ -114,18 +109,17 @@ List of modules
114
109
  substituting on inequivalent sites of a sub-lattice.
115
110
  * **oxidation_states.py**: Used for predicting the likelihood of species coexisting in a compound based on a statistical model.
116
111
  * **structure_prediction**: A submodule which contains a collection of tools for facilitating crystal structure predictions via ionic substitutions
117
- * **dopant_prediction**: A submodule which contains a collections of tools for predicting n-type and p-type dopants.
112
+ * **dopant_prediction**: A submodule which contains a collections of tools for predicting dopants.
118
113
 
119
114
  Requirements
120
115
  ------------
121
-
122
- The main language is Python 3 and has been tested using Python 3.8+.
116
+ The main language is Python 3 and has been tested using Python 3.9+.
123
117
  Basic requirements are Numpy and Scipy.
124
- The [Atomic Simulation Environment](https://wiki.fysik.dtu.dk/ase) (ASE), [spglib](http://atztogo.github.io/spglib), and [pymatgen](www.pymatgen.org) are also required for many components.
118
+ The [Atomic Simulation Environment](https://wiki.fysik.dtu.dk/ase) (ASE), [spglib](http://atztogo.github.io/spglib), and [pymatgen](https://pymatgen.org) are also required for many components.
125
119
 
126
120
  Installation
127
121
  ------------
128
- The latest stable release of SMACT can be installed via pip which will automatically setup other Python packages as required:
122
+ The latest stable release can be installed via pip which will automatically set up other Python packages as required:
129
123
 
130
124
  pip install smact
131
125
 
@@ -137,12 +131,12 @@ conda install -c conda-forge smact
137
131
 
138
132
  Alternatively, the very latest version can be installed using:
139
133
 
140
- pip install git+git://github.com/WMD-group/SMACT.git
134
+ pip install git+https://github.com/WMD-group/SMACT.git
141
135
 
142
136
  For developer installation SMACT can be installed from a copy of the source
143
137
  repository (https://github.com/wmd-group/smact); this will be preferred if using experimental code branches.
144
138
 
145
- To clone the project from Github and make a local installation:
139
+ To clone the project from GitHub and make a local installation:
146
140
 
147
141
  git clone https://github.com/wmd-group/smact.git
148
142
  cd smact
@@ -161,39 +155,36 @@ Development notes
161
155
  -----------------
162
156
 
163
157
  ### Bugs, features and questions
164
- Please use the [Issue Tracker](https://github.com/WMD-group/smact/issues) to report bugs or request features in the first instance. While we hope that most questions can be answered by searching [the docs](https://smact.readthedocs.io/en/latest/), we welcome new questions on the issue tracker, especially if they helps us improve the docs! For other queries about any aspect of the code, please contact either Dan Davies (author) or Anthony Onwuli (maintainer) by e-mail: d.w.davies@imperial.ac.uk or anthony.onwuli16@imperial.ac.uk respectively.
158
+ Please use the [Issue Tracker](https://github.com/WMD-group/smact/issues) to report bugs or request features in the first instance. While we hope that most questions can be answered by searching [the docs](https://smact.readthedocs.io/en/latest/), we welcome new questions on the issue tracker, especially if they help us improve the docs! For other queries about any aspect of the code, please contact either Aron Walsh on behalf of The SMACT Developers (author) or Anthony Onwuli (maintainer) by e-mail: a.walsh@imperial.ac.uk or anthony.onwuli16@imperial.ac.uk respectively.
165
159
 
166
160
  ### Code contributions
167
- We are always looking for ways to make SMACT better and more useful to the wider community; contributions are very welcome. Please use the ["Fork and Pull"](https://guides.github.com/activities/forking/) workflow to make contributions and stick as closely as possible to the following:
161
+ We are always looking for ways to make SMACT better and more useful to the wider community; contributions are welcome. Please use the ["Fork and Pull"](https://guides.github.com/activities/forking/) workflow to make contributions and stick as closely as possible to the following:
168
162
 
169
- - Code style should comply with [PEP8](http://www.python.org/dev/peps/pep-0008) where possible. [Google's house style](https://google.github.io/styleguide/pyguide.html)
170
- is also helpful, including a good model for docstrings.
163
+ - Code style should comply with [PEP8](http://www.python.org/dev/peps/pep-0008) where possible. [Google's house style](https://google.github.io/styleguide/pyguide.html) is also helpful, including a good model for docstrings.
171
164
  - Please use comments liberally when adding nontrivial features, and take the chance to clean up other people's code while looking at it.
172
165
  - Add tests wherever possible, and use the test suite to check if you broke anything.
166
+ - Look at the [contributing guide](CONTRIBUTING.md) for more information.
173
167
 
174
168
  ### Tests
175
169
  Testing modules should be pass/fail and wrapped into **tests/test_core.py** or another **tests/test_something.py** file added, if appropriate.
176
170
  Run the tests using `python -m pytest -v`.
177
171
  (The final `-v` is optional and adds more detail to the output.)
178
172
 
179
- We also use integrated testing on Github via [GitHub Actions](hhttps://github.com/features/actions).
173
+ We also use integrated testing on GitHub via [GitHub Actions](hhttps://github.com/features/actions).
180
174
 
181
175
  References
182
176
  ----------
183
177
 
184
- [D. W. Davies et al,
185
- "SMACT: Semiconducting Materials by Analogy and Chemical Theory" *JOSS* **4**, 1361 (2019)](https://joss.theoj.org/papers/7efd2f2ad60d25bdccee3fbd3fc11448)
178
+ [H. Park et al.,
179
+ "Mapping inorganic crystal chemical space" *Faraday Discuss.* (2024)](https://pubs.rsc.org/en/content/articlelanding/2024/fd/d4fd00063c)
186
180
 
187
- [D. W. Davies et al,
188
- "Data-driven discovery of photoactive quaternary oxides using first-principles machine learning" *Chem. Mater.* **31**, 7221 (2019)](https://pubs.acs.org/doi/abs/10.1021/acs.chemmater.9b01519)
181
+ [D. W. Davies et al.,
182
+ "SMACT: Semiconducting Materials by Analogy and Chemical Theory" *JOSS* **4**, 1361 (2019)](https://joss.theoj.org/papers/7efd2f2ad60d25bdccee3fbd3fc11448)
189
183
 
190
- [D. W. Davies et al,
184
+ [D. W. Davies et al.,
191
185
  "Materials discovery by chemical analogy: role of oxidation states in structure prediction" *Faraday Discuss.* **211**, 553 (2018)](https://pubs.rsc.org/en/Content/ArticleLanding/2018/FD/C8FD00032H)
192
186
 
193
- [D. W. Davies et al,
194
- "Computer-aided design of metal chalcohalide semiconductors: from chemical composition to crystal structure" *Chem. Sci.* **9**, 1022 (2018)](http://www.cell.com/chem/abstract/S2451-9294(16)30155-3)
195
-
196
- [D. W. Davies et al,
187
+ [D. W. Davies et al.,
197
188
  "Computational screening of all stoichiometric inorganic materials" *Chem* **1**, 617 (2016)](http://www.cell.com/chem/abstract/S2451-9294(16)30155-3)
198
189
 
199
190
  [B. R. Pamplin, "A systematic method of deriving new semiconducting
@@ -15,10 +15,10 @@
15
15
  SMACT
16
16
  =====
17
17
 
18
- **Semiconducting Materials from Analogy and Chemical Theory** (SMACT) is a collection of rapid screening tools that uses data about chemical elements.
18
+ **Semiconducting Materials from Analogy and Chemical Theory** (SMACT) is a collection of rapid screening and informatics tools that uses data about chemical elements.
19
19
 
20
20
  - **Documentation:** https://smact.readthedocs.io/en/latest/
21
- - **Examples folder:** https://github.com/WMD-group/SMACT/tree/master/examples
21
+ - **Examples:** https://github.com/WMD-group/SMACT/tree/master/examples
22
22
 
23
23
  ![](SMACT.png)
24
24
 
@@ -26,18 +26,13 @@ SMACT
26
26
 
27
27
  Statement of need
28
28
  --------
29
- There is a strong demand for functional materials across a wide range of technologies. The motivation can include cost reduction, performance enhancement, or to enable a new application. Data collections such as the [Materials Project](https://www.materialsproject.org), [NREL Materials Database](http://materials.nrel.gov) and the [Open Quantum Materials Database](http://oqmd.org) are valuable resources, but they largely cover the properties of *known* compounds as calculated using high-level quantum mechanical theories.
30
-
31
- We have developed low-cost procedures for screening hypothetical materials in SMACT. This framework can be used for simple calculations on your own computer. SMACT follows a top-down approach where a set of element combinations is generated and then screened using rapid chemical filters. It can be used as part of a multi-technique workflow or to feed machine learning models for materials.
32
-
29
+ There is a strong demand for functional materials across a wide range of technologies. The motivation can include cost reduction, performance enhancement, or to enable a new application. We have developed low-cost procedures for screening hypothetical materials. This framework can be used for simple calculations on your own computer. SMACT follows a top-down approach where a set of element combinations is generated and then screened using rapid chemical filters. It can be used as part of a multi-technique workflow or to feed machine learning models for materials.
33
30
 
34
31
  ![](smact_simple.gif)
35
32
 
36
-
37
33
  Getting started
38
34
  -----
39
-
40
- SMACT's features are accessed through Python scripts, importing classes and functions as needed.
35
+ Features are accessed through Python scripts, importing classes and functions as needed.
41
36
  The best place to start is looking at [the docs](https://smact.readthedocs.io/en/latest/), which highlight some simple examples of how these classes and functions can be used.
42
37
  Extended examples are available in [our examples folder](https://github.com/WMD-group/SMACT/tree/master/examples).
43
38
 
@@ -45,9 +40,9 @@ Code features
45
40
  --------
46
41
  - At the core of SMACT are [Element](https://smact.readthedocs.io/en/latest/smact.html#smact.Element) and [Species](https://smact.readthedocs.io/en/latest/smact.html#smact.Species) (element in a given oxidation state) classes that have various properties associated with them.
47
42
 
48
- - The various oxidation states that are accessible to each element are included in their properties.
43
+ - Oxidation states that are accessible to each element are included in their properties.
49
44
 
50
- - Element compositions can be screened through based on the heuristic filters of charge neutrality and electronegativity order. This is handled using the [screening module](https://smact.readthedocs.io/en/latest/smact.screening.html) and [this publication](https://www.cell.com/chem/fulltext/S2451-9294(16)30155-3) describes the underlying theory. An example procedure is [outlined in the docs](https://smact.readthedocs.io/en/latest/examples.html#neutral-combinations) and further examples can be found in the [counting examples subfolder](https://github.com/WMD-group/SMACT/tree/master/examples/Counting).
45
+ - Element compositions can be screened through based on the heuristic filters of charge neutrality and electronegativity order. This is handled using the [screening module](https://smact.readthedocs.io/en/latest/smact.screening.html) and [this publication](https://www.cell.com/chem/fulltext/S2451-9294(16)30155-3) describes the underlying theory. An example procedure is [outlined in the docs](https://smact.readthedocs.io/en/latest/examples.html#neutral-combinations) and more examples can be found in the [counting examples subfolder](https://github.com/WMD-group/SMACT/tree/master/examples/Counting).
51
46
 
52
47
  - Further filters can be applied to generated lists of compositions in order to screen for particular properties. These properties are either intrinsic properties of elements or are calculated for compositions using the [properties module](https://smact.readthedocs.io/en/latest/smact.properties.html). For example:
53
48
  - A use case is shown in [this publication](https://pubs.rsc.org/en/content/articlehtml/2018/sc/c7sc03961a), in which 160,000 chemical compositions are screened based on optical band gap calculated using the [solid-state energy scale](https://www.sciencedirect.com/science/article/pii/S0022459615300888).
@@ -55,18 +50,17 @@ Code features
55
50
 
56
51
  - Compositions can also be filtered based on sustainability via the abundance of elements in the Earth's crust or via the [HHI scale](https://pubs.acs.org/doi/10.1021/cm400893e).
57
52
 
58
- - Compositions can easily be converted for use in Pymatgen or for representation to machine learning algorithms ([see "next steps" in this example](https://github.com/WMD-group/SMACT/blob/master/examples/Counting/Generate_compositions_lists.ipynb)).
53
+ - Compositions can be converted for use in Pymatgen or for representation to machine learning algorithms ([see "next steps" in this example](https://github.com/WMD-group/SMACT/blob/master/examples/Counting/Generate_compositions_lists.ipynb)) and the related [ElementEmbeddings](https://github.com/WMD-group/ElementEmbeddings) package.
59
54
 
60
- - The code also has some tools for manipulating common crystal lattice types:
61
- - Common crystal structure types can be built using the [builder module](https://smact.readthedocs.io/en/latest/smact.builder.html)
62
- - Lattice parameters can be quickly estimated using ionic radii of the elements for various common crystal structure types using the [lattice_parameters module](https://smact.readthedocs.io/en/latest/smact.lattice_parameters.html).
63
- - The [lattice module](https://smact.readthedocs.io/en/latest/smact.lattice.html) and [distorter module](https://smact.readthedocs.io/en/latest/smact.distorter.html) rely on the [Atomic Simulation Environment](https://wiki.fysik.dtu.dk/ase/) and can be used to generate unique atomic substitutions on a given crystal structure.
64
- - The [structure prediction](https://smact.readthedocs.io/en/latest/smact.structure_prediction.html) module can be used to predict the structure of hypothetical compositions using species similarity measures.
65
- - The [dopant prediction](https://smact.readthedocs.io/en/latest/smact.dopant_prediction.html) module can be used to facilitate high-throughput predictions of p-type and n-type dopants of multicomponent solids.
55
+ - The code also has tools for manipulating common crystal lattice types:
56
+ - Certain structure types can be built using the [builder module](https://smact.readthedocs.io/en/latest/smact.builder.html)
57
+ - Lattice parameters can be estimated using ionic radii of the elements for various common crystal structure types using the [lattice_parameters module](https://smact.readthedocs.io/en/latest/smact.lattice_parameters.html).
58
+ - The [lattice module](https://smact.readthedocs.io/en/latest/smact.lattice.html) and [distorter module](https://smact.readthedocs.io/en/latest/smact.distorter.html) rely on the [Atomic Simulation Environment](https://wiki.fysik.dtu.dk/ase/) and can be used to generate unique atomic substitutions on a given crystal structure.
59
+ - The [structure prediction](https://smact.readthedocs.io/en/latest/smact.structure_prediction.html) module can be used to predict the structure of hypothetical compositions using species similarity measures.
60
+ - The [dopant prediction](https://smact.readthedocs.io/en/latest/smact.dopant_prediction.html) module can be used to facilitate high-throughput predictions of p-type and n-type dopants of multicomponent solids.
66
61
 
67
62
  List of modules
68
63
  -------
69
-
70
64
  * **smact** library containing:
71
65
  * **\_\_init\_\_.py** Contains the core `Element` and `Species` classes.
72
66
  * **data_loader.py** Handles the loading of external data used to initialise the core `smact.Element` and `smact.Species` classes.
@@ -74,7 +68,7 @@ List of modules
74
68
  * **properties.py** A collection of tools for estimating useful properties based on composition.
75
69
  * **lattice.py** Given the sites, multiplicities and possible oxidation states
76
70
  at those sites, this reads from the database and generates all possible
77
- stoichiometeries.
71
+ stoichiometries.
78
72
  * **builder.py** Builds some common lattice structures, given the chemical
79
73
  composition.
80
74
  * **lattice_parameters.py** Estimation of lattice parameters for various lattice types using covalent/ionic radii.
@@ -82,18 +76,17 @@ List of modules
82
76
  substituting on inequivalent sites of a sub-lattice.
83
77
  * **oxidation_states.py**: Used for predicting the likelihood of species coexisting in a compound based on a statistical model.
84
78
  * **structure_prediction**: A submodule which contains a collection of tools for facilitating crystal structure predictions via ionic substitutions
85
- * **dopant_prediction**: A submodule which contains a collections of tools for predicting n-type and p-type dopants.
79
+ * **dopant_prediction**: A submodule which contains a collections of tools for predicting dopants.
86
80
 
87
81
  Requirements
88
82
  ------------
89
-
90
- The main language is Python 3 and has been tested using Python 3.8+.
83
+ The main language is Python 3 and has been tested using Python 3.9+.
91
84
  Basic requirements are Numpy and Scipy.
92
- The [Atomic Simulation Environment](https://wiki.fysik.dtu.dk/ase) (ASE), [spglib](http://atztogo.github.io/spglib), and [pymatgen](www.pymatgen.org) are also required for many components.
85
+ The [Atomic Simulation Environment](https://wiki.fysik.dtu.dk/ase) (ASE), [spglib](http://atztogo.github.io/spglib), and [pymatgen](https://pymatgen.org) are also required for many components.
93
86
 
94
87
  Installation
95
88
  ------------
96
- The latest stable release of SMACT can be installed via pip which will automatically setup other Python packages as required:
89
+ The latest stable release can be installed via pip which will automatically set up other Python packages as required:
97
90
 
98
91
  pip install smact
99
92
 
@@ -105,12 +98,12 @@ conda install -c conda-forge smact
105
98
 
106
99
  Alternatively, the very latest version can be installed using:
107
100
 
108
- pip install git+git://github.com/WMD-group/SMACT.git
101
+ pip install git+https://github.com/WMD-group/SMACT.git
109
102
 
110
103
  For developer installation SMACT can be installed from a copy of the source
111
104
  repository (https://github.com/wmd-group/smact); this will be preferred if using experimental code branches.
112
105
 
113
- To clone the project from Github and make a local installation:
106
+ To clone the project from GitHub and make a local installation:
114
107
 
115
108
  git clone https://github.com/wmd-group/smact.git
116
109
  cd smact
@@ -129,41 +122,38 @@ Development notes
129
122
  -----------------
130
123
 
131
124
  ### Bugs, features and questions
132
- Please use the [Issue Tracker](https://github.com/WMD-group/smact/issues) to report bugs or request features in the first instance. While we hope that most questions can be answered by searching [the docs](https://smact.readthedocs.io/en/latest/), we welcome new questions on the issue tracker, especially if they helps us improve the docs! For other queries about any aspect of the code, please contact either Dan Davies (author) or Anthony Onwuli (maintainer) by e-mail: d.w.davies@imperial.ac.uk or anthony.onwuli16@imperial.ac.uk respectively.
125
+ Please use the [Issue Tracker](https://github.com/WMD-group/smact/issues) to report bugs or request features in the first instance. While we hope that most questions can be answered by searching [the docs](https://smact.readthedocs.io/en/latest/), we welcome new questions on the issue tracker, especially if they help us improve the docs! For other queries about any aspect of the code, please contact either Aron Walsh on behalf of The SMACT Developers (author) or Anthony Onwuli (maintainer) by e-mail: a.walsh@imperial.ac.uk or anthony.onwuli16@imperial.ac.uk respectively.
133
126
 
134
127
  ### Code contributions
135
- We are always looking for ways to make SMACT better and more useful to the wider community; contributions are very welcome. Please use the ["Fork and Pull"](https://guides.github.com/activities/forking/) workflow to make contributions and stick as closely as possible to the following:
128
+ We are always looking for ways to make SMACT better and more useful to the wider community; contributions are welcome. Please use the ["Fork and Pull"](https://guides.github.com/activities/forking/) workflow to make contributions and stick as closely as possible to the following:
136
129
 
137
- - Code style should comply with [PEP8](http://www.python.org/dev/peps/pep-0008) where possible. [Google's house style](https://google.github.io/styleguide/pyguide.html)
138
- is also helpful, including a good model for docstrings.
130
+ - Code style should comply with [PEP8](http://www.python.org/dev/peps/pep-0008) where possible. [Google's house style](https://google.github.io/styleguide/pyguide.html) is also helpful, including a good model for docstrings.
139
131
  - Please use comments liberally when adding nontrivial features, and take the chance to clean up other people's code while looking at it.
140
132
  - Add tests wherever possible, and use the test suite to check if you broke anything.
133
+ - Look at the [contributing guide](CONTRIBUTING.md) for more information.
141
134
 
142
135
  ### Tests
143
136
  Testing modules should be pass/fail and wrapped into **tests/test_core.py** or another **tests/test_something.py** file added, if appropriate.
144
137
  Run the tests using `python -m pytest -v`.
145
138
  (The final `-v` is optional and adds more detail to the output.)
146
139
 
147
- We also use integrated testing on Github via [GitHub Actions](hhttps://github.com/features/actions).
140
+ We also use integrated testing on GitHub via [GitHub Actions](hhttps://github.com/features/actions).
148
141
 
149
142
  References
150
143
  ----------
151
144
 
152
- [D. W. Davies et al,
153
- "SMACT: Semiconducting Materials by Analogy and Chemical Theory" *JOSS* **4**, 1361 (2019)](https://joss.theoj.org/papers/7efd2f2ad60d25bdccee3fbd3fc11448)
145
+ [H. Park et al.,
146
+ "Mapping inorganic crystal chemical space" *Faraday Discuss.* (2024)](https://pubs.rsc.org/en/content/articlelanding/2024/fd/d4fd00063c)
154
147
 
155
- [D. W. Davies et al,
156
- "Data-driven discovery of photoactive quaternary oxides using first-principles machine learning" *Chem. Mater.* **31**, 7221 (2019)](https://pubs.acs.org/doi/abs/10.1021/acs.chemmater.9b01519)
148
+ [D. W. Davies et al.,
149
+ "SMACT: Semiconducting Materials by Analogy and Chemical Theory" *JOSS* **4**, 1361 (2019)](https://joss.theoj.org/papers/7efd2f2ad60d25bdccee3fbd3fc11448)
157
150
 
158
- [D. W. Davies et al,
151
+ [D. W. Davies et al.,
159
152
  "Materials discovery by chemical analogy: role of oxidation states in structure prediction" *Faraday Discuss.* **211**, 553 (2018)](https://pubs.rsc.org/en/Content/ArticleLanding/2018/FD/C8FD00032H)
160
153
 
161
- [D. W. Davies et al,
162
- "Computer-aided design of metal chalcohalide semiconductors: from chemical composition to crystal structure" *Chem. Sci.* **9**, 1022 (2018)](http://www.cell.com/chem/abstract/S2451-9294(16)30155-3)
163
-
164
- [D. W. Davies et al,
154
+ [D. W. Davies et al.,
165
155
  "Computational screening of all stoichiometric inorganic materials" *Chem* **1**, 617 (2016)](http://www.cell.com/chem/abstract/S2451-9294(16)30155-3)
166
156
 
167
157
  [B. R. Pamplin, "A systematic method of deriving new semiconducting
168
158
  compounds by structural analogy", *J. Phys. Chem. Solids*
169
- **25**, 675 (1964)](http://www.sciencedirect.com/science/article/pii/0022369764901763)
159
+ **25**, 675 (1964)](http://www.sciencedirect.com/science/article/pii/0022369764901763)