Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 24, 2024
1 parent b7099c5 commit ccb8190
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
6 changes: 3 additions & 3 deletions phono3py/conductivity/direct_solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,9 +519,9 @@ def _set_collision_matrix_at_sigmas(self, i_gp):
else:
i_data = 0
self._gamma[j, k, i_data] = self._collision.imag_self_energy
self._collision_matrix[
j, k, i_data
] = self._collision.get_collision_matrix()
self._collision_matrix[j, k, i_data] = (
self._collision.get_collision_matrix()
)

def _prepare_collision_matrix(self):
"""Collect pieces and construct collision matrix."""
Expand Down
6 changes: 3 additions & 3 deletions phono3py/conductivity/rta.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,9 @@ def _set_gamma_at_sigmas(self, i):
self._gamma_N[j, k, i] = g_N
self._gamma_U[j, k, i] = g_U
if self._is_gamma_detail:
self._gamma_detail_at_q[
k
] = self._collision.get_detailed_imag_self_energy()
self._gamma_detail_at_q[k] = (
self._collision.get_detailed_imag_self_energy()
)

def _set_gamma_at_sigmas_lowmem(self, i):
"""Calculate gamma without storing ph-ph interaction strength.
Expand Down
1 change: 0 additions & 1 deletion phono3py/interface/calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.


calculator_info = {
"abinit": {"option": {"name": "--abinit", "help": "Invoke Abinit mode"}},
# 'aims': {'option': {'name': "--aims",
Expand Down
16 changes: 8 additions & 8 deletions phono3py/phonon3/real_self_energy.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,16 +292,16 @@ def _run_py_with_frequency_points(self):
freqs = self._frequencies[triplet]
for j, _ in enumerate(self._band_indices):
if self._temperature > 0:
self._real_self_energies[
k, j
] += self._real_self_energies_at_bands(
j, fpoint, freqs, interaction, w
self._real_self_energies[k, j] += (
self._real_self_energies_at_bands(
j, fpoint, freqs, interaction, w
)
)
else:
self._real_self_energies[
k, j
] += self._real_self_energies_at_bands_0K(
j, fpoint, freqs, interaction, w
self._real_self_energies[k, j] += (
self._real_self_energies_at_bands_0K(
j, fpoint, freqs, interaction, w
)
)

self._real_self_energies *= self._unit_conversion
Expand Down

0 comments on commit ccb8190

Please sign in to comment.