Skip to content

Commit a0a10a6

Browse files
committed
format ruff
1 parent ae2763c commit a0a10a6

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/festim/helpers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
from collections.abc import Callable
2+
from typing import Optional
23

34
import dolfinx
45
import numpy as np
56
import ufl
67
from dolfinx import fem
78

8-
from typing import Optional
9-
109

1110
def as_fenics_constant(
1211
value: float | int | fem.Constant, mesh: dolfinx.mesh.Mesh

src/festim/hydrogen_transport_problem.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
from festim import (
2222
reaction as _reaction,
2323
)
24+
from festim import source as _source
2425
from festim import (
2526
species as _species,
2627
)
@@ -29,9 +30,8 @@
2930
)
3031
from festim.helpers import as_fenics_constant
3132
from festim.mesh import Mesh
32-
from festim import source as _source
3333

34-
__all__ = ["HydrogenTransportProblem", "HTransportProblemDiscontinuous"]
34+
__all__ = ["HTransportProblemDiscontinuous", "HydrogenTransportProblem"]
3535

3636

3737
class HydrogenTransportProblem(problem.ProblemBase):
@@ -1063,7 +1063,7 @@ def create_source_values_fenics(self):
10631063
# create value_fenics for all F.ParticleSource objects
10641064
if isinstance(source, _source.ParticleSource):
10651065
V = dolfinx.fem.functionspace(self.mesh.mesh, ("Lagrange", 1))
1066-
1066+
10671067
source.value.convert_input_value(
10681068
mesh=self.mesh.mesh,
10691069
function_space=V,

0 commit comments

Comments
 (0)