Skip to content

Commit 80eed6c

Browse files
committed
Merge branch 'main' into unity-overlap
2 parents c3f7218 + 2041cf7 commit 80eed6c

20 files changed

Lines changed: 211 additions & 551 deletions

File tree

.github/workflows/docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v2.4.0
13+
- uses: actions/checkout@v3
1414

15-
- uses: actions/setup-python@v2.3.2
15+
- uses: actions/setup-python@v4
1616
with:
1717
python-version: 3.8
1818

19-
- uses: actions/cache@v2
19+
- uses: actions/cache@v3
2020
with:
2121
path: ~/.cache/pip
2222
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
@@ -26,7 +26,7 @@ jobs:
2626
- name: Install dependencies
2727
run: |
2828
python -m pip install --upgrade pip
29-
pip install numpy
29+
pip install numpy packaging
3030
pip install -r requirements.txt
3131
pip install -e .[docs]
3232

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88
auto-update:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2.4.0
11+
- uses: actions/checkout@v3
1212

1313
- name: Set up Python
14-
uses: actions/setup-python@v2.3.2
14+
uses: actions/setup-python@v4
1515
with:
1616
python-version: 3.8
1717

@@ -22,7 +22,7 @@ jobs:
2222
run: pre-commit autoupdate
2323

2424
- name: Create Pull Request
25-
uses: peter-evans/create-pull-request@v3
25+
uses: peter-evans/create-pull-request@v4
2626
with:
2727
branch: update/pre-commit-autoupdate
2828
title: Auto-update pre-commit hooks

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v2.4.0
13+
- uses: actions/checkout@v3
1414

15-
- uses: actions/setup-python@v2.3.2
15+
- uses: actions/setup-python@v4
1616
with:
1717
python-version: 3.8
1818

1919
- name: Install dependencies
2020
run: |
2121
python -m pip install --upgrade pip
2222
pip install setuptools setuptools_scm wheel
23-
pip install numpy
23+
pip install numpy packaging
2424
pip install -r requirements.txt
2525
pip install -e .
2626
pip install -e .[tests]

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v2.4.0
17+
- uses: actions/checkout@v3
1818

19-
- uses: actions/setup-python@v2.3.2
19+
- uses: actions/setup-python@v4
2020
with:
2121
python-version: 3.8
2222

23-
- uses: actions/cache@v2
23+
- uses: actions/cache@v3
2424
with:
2525
path: ~/.cache/pip
2626
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
@@ -30,7 +30,7 @@ jobs:
3030
- name: Install dependencies
3131
run: |
3232
python -m pip install --upgrade pip
33-
pip install numpy
33+
pip install numpy packaging
3434
pip install -r requirements.txt
3535
pip install -e .
3636
pip install -e .[tests]

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repos:
55
- id: autoflake
66
args: [--in-place, --remove-all-unused-imports, --remove-unused-variable, --ignore-init-module-imports]
77
- repo: https://github.com/psf/black
8-
rev: 22.1.0
8+
rev: 22.6.0
99
hooks:
1010
- id: black
1111
- repo: https://gitlab.com/pycqa/flake8
@@ -15,7 +15,7 @@ repos:
1515
args: [--max-line-length=125, "--extend-ignore=E203,W503"]
1616
language_version: python3
1717
- repo: https://github.com/pre-commit/pre-commit-hooks
18-
rev: v4.1.0
18+
rev: v4.3.0
1919
hooks:
2020
- id: check-yaml
2121
- id: end-of-file-fixer

CITATION.cff

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
cff-version: 1.2.0
2+
message: |
3+
If you use AMSET in your research, please cite the following:
4+
title: 'Efficient calculation of carrier scattering rates from first principles'
5+
version: 0.4.17 # replace with whatever version you use
6+
doi: 10.1038/s41467-021-22440-5
7+
date-released: 2021-04-13
8+
url: https://github.com/hackingmaterials/amset
9+
issn: 2041-1723
10+
journal: Nature Communications
11+
pages: 2222
12+
volume: 12
13+
year: 2021
14+
type: software
15+
authors:
16+
- family-names: Ganose
17+
given-names: Alex M.
18+
orcid: https://orcid.org/0000-0002-4486-3321
19+
- family-names: Park
20+
given-names: Junsoo
21+
- family-names: Faghaninia
22+
given-names: Alireza
23+
- family-names: Woods-Robinson
24+
given-names: Rachel
25+
- family-names: Persson
26+
given-names: Kristin A.
27+
- family-names: Jain
28+
given-names: Anubhav
29+
orcid: https://orcid.org/0000-0001-5893-9967

amset/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.4.15"
1+
__version__ = "0.4.17"

amset/core/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ def to_file(
516516
data = cast_dict_list(data)
517517

518518
filename = joinpath(directory, f"{prefix}transport{suffix}.{file_format}")
519-
dumpfn(data, filename, indent=4)
519+
dumpfn(data, filename)
520520

521521
elif file_format in ["csv", "txt"]:
522522
# don't write the data as JSON, instead write raw text files

amset/interpolation/periodic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def _setup_interpolators(data, grid_kpoints, mesh_dim, sort_idx, gaussian):
9797
grid_data = np.tile(grid_data, (2, 1, 1, 1) + (1,) * len(data_shape))
9898

9999
grid = UCGrid(
100-
(0, spin_nbands - 1, spin_nbands),
100+
(0.0, spin_nbands - 1.0, spin_nbands),
101101
(x[0], x[-1], len(x)),
102102
(y[0], y[-1], len(y)),
103103
(z[0], z[-1], len(z)),

amset/interpolation/quad.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)