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 Jan 29, 2024
1 parent 85ee7f1 commit 315b50d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions mumax3c/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Mumax3 calculator."""

import importlib.metadata

import pytest
Expand Down
6 changes: 3 additions & 3 deletions mumax3c/scripts/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ def mumax3_regions(system, ovf_format="bin4", abspath=True):
continue
unique_index += 1
mx3 += f"Msat.setregion({unique_index}, {ms})\n"
region_indices[
(sr_indices == sr_index) & np.isclose(Ms_array, ms)
] = unique_index
region_indices[(sr_indices == sr_index) & np.isclose(Ms_array, ms)] = (
unique_index
)
region_relator[sr_name].append(unique_index)

if unique_index > max_index:
Expand Down
1 change: 1 addition & 0 deletions tasks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tasks to release the package."""

import os
import shutil

Expand Down

0 comments on commit 315b50d

Please sign in to comment.