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 Apr 29, 2024
1 parent 7579715 commit 038cad0
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions micromagneticmodel/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Domain-specific language for computational magnetism."""

import importlib.metadata

import pytest
Expand Down
1 change: 1 addition & 0 deletions micromagneticmodel/abstract/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Abstract classes"""

from .abstract import Abstract
from .container import Container
from .term import Term
1 change: 1 addition & 0 deletions micromagneticmodel/consts.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Physical constants."""

import math

# Fundamental constants
Expand Down
1 change: 1 addition & 0 deletions micromagneticmodel/dynamics/damping.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class Damping(DynamicsTerm):
ValueError: ...
"""

_allowed_attributes = ["alpha"]
_reprlatex = (
r"-\frac{\gamma_{0} \alpha}{1 + \alpha^{2}} \mathbf{m} "
Expand Down
1 change: 1 addition & 0 deletions micromagneticmodel/dynamics/precession.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class Precession(DynamicsTerm):
ValueError: ...
"""

_allowed_attributes = ["gamma0"]
_reprlatex = (
r"-\frac{\gamma_{0}}{1 + \alpha^{2}} \mathbf{m} "
Expand Down
1 change: 1 addition & 0 deletions micromagneticmodel/energy/cubicanisotropy.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class CubicAnisotropy(EnergyTerm):
ValueError: ...
"""

_allowed_attributes = ["K", "u1", "u2"]

@property
Expand Down
1 change: 1 addition & 0 deletions micromagneticmodel/energy/demag.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class Demag(EnergyTerm):
>>> demag = mm.Demag()
"""

_allowed_attributes = ["asymptotic_radius"]
_reprlatex = (
r"-\frac{1}{2}\mu_{0}M_\text{s}" r"\mathbf{m} \cdot \mathbf{H}_\text{d}"
Expand Down
1 change: 1 addition & 0 deletions micromagneticmodel/energy/dmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ class DMI(EnergyTerm):
TypeError: ...
"""

_allowed_attributes = ["D", "crystalclass"]

@property
Expand Down
1 change: 1 addition & 0 deletions micromagneticmodel/energy/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class Exchange(EnergyTerm):
TypeError: ...
"""

_allowed_attributes = ["A"]
_reprlatex = r"- A \mathbf{m} \cdot \nabla^{2} \mathbf{m}"

Expand Down
1 change: 1 addition & 0 deletions micromagneticmodel/energy/magnetoelastic.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ class MagnetoElastic(EnergyTerm):
ValueError: ...
"""

_allowed_attributes = ["B1", "B2", "e_diag", "e_offdiag"]
_reprlatex = (
r"B_{1}\sum_{i} m_{i}\epsilon_{ii} + "
Expand Down
1 change: 1 addition & 0 deletions micromagneticmodel/energy/uniaxialanisotropy.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class UniaxialAnisotropy(EnergyTerm):
ValueError: ...
"""

_allowed_attributes = ["K", "K1", "K2", "u"]

@property
Expand Down
1 change: 1 addition & 0 deletions micromagneticmodel/examples/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
"""Functions for creating examples"""

from .examples import macrospin
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 038cad0

Please sign in to comment.