Skip to content

Commit

Permalink
Merge branch 'hackingmaterials:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksund authored Jun 20, 2022
2 parents 45afff7 + 76a529b commit d471b57
Show file tree
Hide file tree
Showing 56 changed files with 595 additions and 171 deletions.
58 changes: 33 additions & 25 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,42 @@ on: [push, pull_request]

jobs:
build:
# prevent this action from running on forks
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt --quiet
- name: black
run: |
# Black step should fail if there are any errors
black --version
black --check --diff --color matminer
- name: pylint
run: |
pylint --fail-under=9 matminer
- name: flake8
run: |
flake8 --version
# exit-zero treats all errors as warnings.
flake8 --count --exit-zero --max-complexity=20 --statistics matminer
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: requirements-dev.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt --quiet
# - name: mypy
# run: |
# mypy --version
# rm -rf .mypy_cache
# mypy matminer
# - name: pydocstyle
# run: |
# pydocstyle --count matminer
# - name: pylint
# run: |
# pylint matminer
- name: black
run: |
black --version
black --check --diff --color matminer
- name: flake8
run: |
flake8 --version
flake8 --count --show-source --statistics matminer
# exit-zero treats all errors as warnings.
flake8 --count --exit-zero --max-complexity=20 --statistics matminer
70 changes: 70 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
exclude: ^(docs|.*test_files|cmd_line|dev_scripts)

default_language_version:
python: python3

ci:
autoupdate_schedule: monthly
skip: [flake8, mypy, pylint]

repos:

- repo: https://github.com/myint/autoflake
rev: v1.4
hooks:
- id: autoflake
args:
- --in-place
- --remove-unused-variables
- --remove-all-unused-imports
- --expand-star-imports
- --ignore-init-module-imports

- repo: https://github.com/asottile/pyupgrade
rev: v2.32.0
hooks:
- id: pyupgrade
args: [--py38-plus]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: check-yaml
exclude: pymatgen/analysis/vesta_cutoffs.yaml
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
args: ["--profile", "black"]

- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black

- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.950
hooks:
- id: mypy

- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: python
types: [python]
args:
[
"-sn",
"--rcfile=pylintrc",
]
additional_dependencies: [pylint]
112 changes: 111 additions & 1 deletion docs/_sources/dataset_summary.rst.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
=================
Table of Datasets
=================
Find a table of all 43 datasets available in matminer here.
Find a table of all 45 datasets available in matminer here.

.. list-table::
:align: left
Expand Down Expand Up @@ -137,6 +137,12 @@ Find a table of all 43 datasets available in matminer here.
* - :code:`superconductivity2018`
- Dataset of ~16,000 experimental superconductivity records (critical temperatures) from Stanev et al., originally from the Japanese National Institute for Materials Science
- 16414
* - :code:`tholander_nitrides`
- A challenging data set for quantum machine learning containing a diverse set of 12.8k polymorphs in the Zn-Ti-N, Zn-Zr-N and Zn-Hf-N chemical systems
- 12815
* - :code:`ucsb_thermoelectrics`
- Database of ~1,100 experimental thermoelectric materials from UCSB aggregated from 108 source publications and personal communications
- 1093
* - :code:`wolverton_oxides`
- 4,914 perovskite oxides containing composition data, lattice constants, and formation + vacancy formation energies
- 4914
Expand Down Expand Up @@ -2324,6 +2330,110 @@ https://doi.org/10.1038/s41524-018-0085-8
------------------
tholander_nitrides
------------------
A challenging data set for quantum machine learning containing a diverse set of 12.8k polymorphs in the Zn-Ti-N, Zn-Zr-N and Zn-Hf-N chemical systems. The phase diagrams of the Ti-Zn-N, Zr-Zn-N, and Hf-Zn-N systems are determined using large-scale high-throughput density functional calculations (DFT-GGA) (PBE). In total 12,815 relaxed structures are shared alongside their energy calculated using the VASP DFT code. The High-Throughput Toolkit was used to manage the calculations. Data adapted and deduplicated from the original data on Zenodo at https://zenodo.org/record/5530535#.YjJ3ZhDMJLQ, published under MIT licence. Collated from separate files of chemical systems and deduplicated according to identical structures matching ht_ids. Prepared in collaboration with Rhys Goodall.

**Number of entries:** 12815

.. list-table::
:align: left
:widths: 20 80
:header-rows: 1

* - Column
- Description
* - :code:`material_id`
- Human readable identifier for each material.
* - :code:`ht_id`
- Unique identifier to track the calculation in httk
* - :code:`initial_structure`
- A pymatgen structure object representing the structure before relaxation.
* - :code:`final_structure`
- A pymatgen structure object representing the structure after relaxation.
* - :code:`E_vasp_per_atom`
- The VASP calculated energy per atom for the final structure, in eV/atom
* - :code:`chemical_system`
- The chemical system represented by the atoms actually contained in the structure



**Reference**

https://zenodo.org/record/5530535#.YjJ3ZhDMJLQ



**Bibtex Formatted Citations**

.. code-block:: text
@article{tholander2016strong, title={Strong piezoelectric response in stable TiZnN2, ZrZnN2, and HfZnN2 found by ab initio high-throughput approach}, author={Tholander, Christopher and Andersson, CBA and Armiento, Rickard and Tasnadi, Ferenc and Alling, Bj{\"o}rn}, journal={Journal of Applied Physics}, volume={120}, number={22}, pages={225102}, year={2016}, publisher={AIP Publishing LLC} }
--------------------
ucsb_thermoelectrics
--------------------
Database of ~1,100 experimental thermoelectric materials from UCSB aggregated from 108 source publications and personal communications. Downloaded from Citrine. Source UCSB webpage is http://www.mrl.ucsb.edu:8080/datamine/thermoelectric.jsp. See reference for more information on original data aggregation. No duplicate entries are present, but each src may result in multiple measurements of the same materials' properties at different temperatures or conditions.

**Number of entries:** 1093

.. list-table::
:align: left
:widths: 20 80
:header-rows: 1

* - Column
- Description
* - :code:`composition`
- Chemical formula.
* - :code:`crystallinity`
- Either single crystal, polycrystalline, or nanoparticles.
* - :code:`synthesis`
- Brief string describing the synthesis method
* - :code:`spacegroup`
- Spacegroup number, if available
* - :code:`rho (ohm.cm)`
- Electrical resistivity, in ohm.cm
* - :code:`S [muV/K]`
- Seebeck coefficient, in microVolts/K, if available
* - :code:`PF [W/mK^2]`
- Thermoelectric power factor, conductivity * Seebeck^2, in [W/mK^2] if available
* - :code:`zT`
- Thermoelectric figure of merit, PF * T/K, unitless, if available
* - :code:`kappa [W/mK]`
- Thermal conductivity in Watt/ meter * Kelvin, if available
* - :code:`sigma [S/cm]`
- Electrical conductivity, in Siemens/cm, if available
* - :code:`T [K]`
- Temperature in Kelvin at which these properties were obtained, if available
* - :code:`src`
- Original source of the recording. To cite the aggregator of the data, see the bibtext_refs section of this metadata.



**Reference**

https://citrination.com/datasets/150557/



**Bibtex Formatted Citations**

.. code-block:: text
@article{Gaultois2013, doi = {10.1021/cm400893e}, url = {https://doi.org/10.1021/cm400893e}, year = {2013}, month = may, publisher = {American Chemical Society ({ACS})}, volume = {25}, number = {15}, pages = {2911--2920}, author = {Michael W. Gaultois and Taylor D. Sparks and Christopher K. H. Borg and Ram Seshadri and William D. Bonificio and David R. Clarke}, title = {Data-Driven Review of Thermoelectric Materials: Performance and Resource Considerations}, journal = {Chemistry of Materials} }
@misc{Citrine Informatics, title = {UCSB Thermoelectrics Database}, howpublished = {\url{https://citrination.com/datasets/150557/}, }
----------------
wolverton_oxides
----------------
Expand Down
2 changes: 1 addition & 1 deletion docs/_static/documentation_options.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '0.7.6',
VERSION: '0.7.8',
LANGUAGE: 'None',
COLLAPSE_INDEX: false,
BUILDER: 'html',
Expand Down
6 changes: 3 additions & 3 deletions docs/changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MatMiner Changelog &#8212; matminer 0.7.6 documentation</title>
<title>MatMiner Changelog &#8212; matminer 0.7.8 documentation</title>
<link rel="stylesheet" href="_static/nature.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
Expand All @@ -28,7 +28,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">matminer 0.7.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">matminer 0.7.8 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">MatMiner Changelog</a></li>
</ul>
</div>
Expand Down Expand Up @@ -500,7 +500,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">matminer 0.7.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">matminer 0.7.8 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">MatMiner Changelog</a></li>
</ul>
</div>
Expand Down
6 changes: 3 additions & 3 deletions docs/contributors.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MatMiner Contributors &#8212; matminer 0.7.6 documentation</title>
<title>MatMiner Contributors &#8212; matminer 0.7.8 documentation</title>
<link rel="stylesheet" href="_static/nature.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
Expand All @@ -28,7 +28,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">matminer 0.7.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">matminer 0.7.8 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">MatMiner Contributors</a></li>
</ul>
</div>
Expand Down Expand Up @@ -151,7 +151,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">matminer 0.7.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">matminer 0.7.8 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">MatMiner Contributors</a></li>
</ul>
</div>
Expand Down
6 changes: 3 additions & 3 deletions docs/dataset_addition_guide.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Guide to adding datasets to matminer &#8212; matminer 0.7.6 documentation</title>
<title>Guide to adding datasets to matminer &#8212; matminer 0.7.8 documentation</title>
<link rel="stylesheet" href="_static/nature.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
Expand All @@ -28,7 +28,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">matminer 0.7.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">matminer 0.7.8 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Guide to adding datasets to matminer</a></li>
</ul>
</div>
Expand Down Expand Up @@ -331,7 +331,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">matminer 0.7.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">matminer 0.7.8 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Guide to adding datasets to matminer</a></li>
</ul>
</div>
Expand Down
Loading

0 comments on commit d471b57

Please sign in to comment.