Skip to content

Commit ea58e17

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 100ec92 commit ea58e17

56 files changed

Lines changed: 96 additions & 139 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.docker/tests/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# pylint: disable=missing-docstring, redefined-outer-name
32
import pytest
43

.docker/tests/test_aiida.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# pylint: disable=missing-docstring
32

43

efermi/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
# -*- coding: utf-8 -*-
21
"""entry point import of efermi"""
32
# pylint: disable=wildcard-import,undefined-variable, cyclic-import
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
# -*- coding: utf-8 -*-
21

32
__version__ = "4.2.3"

src/aiida_sssp_workflow/calculations/birch_murnaghan_fit.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""
32
Birch-Murnaghan fit as calcfunction refactor from eosfit.py v3.1 write by Kurt Lejaeghere
43
Copyright (C) 2012 Kurt Lejaeghere <Kurt.Lejaeghere@UGent.be>, Center for

src/aiida_sssp_workflow/calculations/calculate_bands_distance.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""
32
Adapt from aiida-sssp-workflow as prototype
43
Will in here refactoring it so no need to use the aiida datatype as inputs.
@@ -137,9 +136,9 @@ def calculate_eta_and_max_diff(
137136
weight_a = bandsdata_a.get("weights")
138137
weight_b = bandsdata_b.get("weights")
139138
weight = weight_a
140-
assert np.allclose(
141-
weight_a, weight_b
142-
), "Different weight of kpoints of two calculation."
139+
assert np.allclose(weight_a, weight_b), (
140+
"Different weight of kpoints of two calculation."
141+
)
143142

144143
bands_a = bandsdata_a.get("bands")
145144
bands_b = bandsdata_b.get("bands")
@@ -229,10 +228,11 @@ def get_bands_distance(
229228
# swap to make sure a is less electrons pseudo
230229
bandsdata_a, bandsdata_b = bandsdata_b, bandsdata_a
231230

232-
assert (
233-
int(bandsdata_b["number_of_electrons"])
234-
>= int(bandsdata_a["number_of_electrons"])
235-
), f"Need to be less num_bands in a {bandsdata_a['number_of_electrons']} than b {bandsdata_b['number_of_electrons']}"
231+
assert int(bandsdata_b["number_of_electrons"]) >= int(
232+
bandsdata_a["number_of_electrons"]
233+
), (
234+
f"Need to be less num_bands in a {bandsdata_a['number_of_electrons']} than b {bandsdata_b['number_of_electrons']}"
235+
)
236236

237237
num_electrons_a = int(bandsdata_a["number_of_electrons"])
238238
num_electrons_b = int(bandsdata_b["number_of_electrons"])
@@ -262,9 +262,9 @@ def get_bands_distance(
262262

263263
# after cut and align in retrive band, the shapes are same now
264264
# import ipdb; ipdb.set_trace()
265-
assert np.shape(bandsdata_a["bands"]) == np.shape(
266-
bandsdata_b["bands"]
267-
), f'{np.shape(bandsdata_a["bands"])} != {np.shape(bandsdata_b["bands"])}'
265+
assert np.shape(bandsdata_a["bands"]) == np.shape(bandsdata_b["bands"]), (
266+
f"{np.shape(bandsdata_a['bands'])} != {np.shape(bandsdata_b['bands'])}"
267+
)
268268

269269
# eta_v
270270
fermi_shift_v = 0.0

src/aiida_sssp_workflow/calculations/calculate_metric.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""
32
Refactor from calcDelta.py v3.1 write by Kurt Lejaeghere
43
Copyright (C) 2012 Kurt Lejaeghere <Kurt.Lejaeghere@UGent.be>, Center for

src/aiida_sssp_workflow/calculations/wien2k_ref.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""
32
The string copy paste from WIEN2k.txt of calcDelta package version 3.1
43
and WIEN2K eos results for the rare-earth nitrides (Lanthanides)

src/aiida_sssp_workflow/cli/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# pylint: disable=wrong-import-position,wildcard-import
32
"""Module for the command line interface."""
43

src/aiida_sssp_workflow/cli/extract.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
"""Extract SSSP verification results from AiiDA database.
43
54
This script will get verification nodes pk as inputs and export all results into a json file

0 commit comments

Comments
 (0)