Skip to content

Commit 09018cf

Browse files
committed
ruff
1 parent e6d3f8e commit 09018cf

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/festim/hydrogen_transport_problem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ def initialise_exports(self):
452452
if self.mesh.coordinate_system != CoordinateSystem.CARTESIAN:
453453
raise NotImplementedError(
454454
f"Derived quantity exports are not implemented for "
455-
f"{str(self.mesh.coordinate_system)} meshes"
455+
f"{self.mesh.coordinate_system!s} meshes"
456456
)
457457

458458
# if name of species is given then replace with species object

src/festim/material.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ def __init__(
119119
"D_0 and D cannot be set at the same time. Please set only one of them."
120120
)
121121

122-
123122
@property
124123
def solubility_law(self):
125124
return self._solubility_law

src/festim/mesh/mesh.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ def coordinate_system(self, value):
110110
elif isinstance(value, str):
111111
self._coordinate_system = CoordinateSystem.from_string(value)
112112
else:
113-
raise ValueError("coordinate_system must be of type str or CoordinateSystem")
113+
raise ValueError(
114+
"coordinate_system must be of type str or CoordinateSystem"
115+
)
114116

115117
@property
116118
def vdim(self):

0 commit comments

Comments
 (0)