Skip to content

Commit 488af56

Browse files
black formatter
1 parent 03ec91d commit 488af56

File tree

8 files changed

+10
-9
lines changed

8 files changed

+10
-9
lines changed

pina/domain/ellipsoid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def __init__(self, ellipsoid_dict, sample_surface=False):
2727
Sampling for dimensions greater or equal to 10 could result in a
2828
shrinkage of the ellipsoid, which degrades the quality of the
2929
samples. For dimensions higher than 10, see the following reference.
30-
30+
3131
.. seealso::
3232
**Original reference**: Dezert, Jean, and Musso, Christian.
3333
*An efficient method for generating points uniformly distributed

pina/equation/equation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def residual(self, input_, output_, params_=None):
3636
:class:`torch.nn.Module` instance.
3737
:param dict params_: Dictionary of unknown parameters, associated with a
3838
:class:`~pina.problem.inverse_problem.InverseProblem` instance.
39-
If the equation is not related to a
39+
If the equation is not related to a
4040
:class:`~pina.problem.inverse_problem.InverseProblem` instance, the
4141
parameters must be initialized to ``None``. Default is ``None``.
4242
:return: The computed residual of the equation.

pina/equation/equation_interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class EquationInterface(metaclass=ABCMeta):
1010
Equations in PINA simplify the training process. When defining a problem,
1111
each equation passed to a :class:`~pina.condition.condition.Condition`
1212
object must be either an :class:`~pina.equation.equation.Equation` or a
13-
:class:`~pina.equation.system_equation.SystemEquation` instance.
13+
:class:`~pina.equation.system_equation.SystemEquation` instance.
1414
1515
An :class:`~pina.equation.equation.Equation` is a wrapper for a callable
1616
function, while :class:`~pina.equation.system_equation.SystemEquation`

pina/problem/zoo/allen_cahn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class AllenCahnProblem(TimeDependentProblem, SpatialProblem):
4949
Computer Methods in Applied Mechanics and Engineering 421 (2024): 116805
5050
DOI: `10.1016/
5151
j.cma.2024.116805 <https://doi.org/10.1016/j.cma.2024.116805>`_.
52-
52+
5353
:Example:
5454
>>> problem = AllenCahnProblem()
5555
"""

pina/problem/zoo/helmholtz.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class HelmholtzProblem(SpatialProblem):
5353
**Original reference**: Si, Chenhao, et al. *Complex Physics-Informed
5454
Neural Network.* arXiv preprint arXiv:2502.04917 (2025).
5555
DOI: `arXiv:2502.04917 <https://arxiv.org/abs/2502.04917>`_.
56-
56+
5757
:Example:
5858
>>> problem = HelmholtzProblem()
5959
"""

pina/solver/garom.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __init__(
4040
):
4141
"""
4242
Initialization of the :class:`GAROM` class.
43-
43+
4444
:param AbstractProblem problem: The formulation of the problem.
4545
:param torch.nn.Module generator: The generator model.
4646
:param torch.nn.Module discriminator: The discriminator model.
@@ -50,7 +50,7 @@ def __init__(
5050
:param Optimizer optimizer_generator: The optimizer for the generator.
5151
If `None`, the :class:`torch.optim.Adam` optimizer is used.
5252
Default is ``None``.
53-
:param Optimizer optimizer_discriminator: The optimizer for the
53+
:param Optimizer optimizer_discriminator: The optimizer for the
5454
discriminator. If `None`, the :class:`torch.optim.Adam` optimizer is
5555
used. Default is ``None``.
5656
:param Scheduler scheduler_generator: The learning rate scheduler for

pina/solver/solver.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def __init__(self, problem, weighting, use_lt):
6363
def _check_solver_consistency(self, problem):
6464
"""
6565
Check the consistency of the solver with the problem formulation.
66-
66+
6767
:param AbstractProblem problem: The problem to be solved.
6868
"""
6969
for condition in problem.conditions.values():
@@ -290,6 +290,7 @@ class SingleSolverInterface(SolverInterface, metaclass=ABCMeta):
290290
"""
291291
Base class for PINA solvers using a single :class:`torch.nn.Module`.
292292
"""
293+
293294
def __init__(
294295
self,
295296
problem,

pina/trainer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def __init__(
3434
"""
3535
Initialization of the :class:`Trainer` class.
3636
37-
:param SolverInterface solver: A
37+
:param SolverInterface solver: A
3838
:class:`~pina.solver.solver.SolverInterface` solver used to solve a
3939
:class:`~pina.problem.abstract_problem.AbstractProblem`.
4040
:param int batch_size: The number of samples per batch to load.

0 commit comments

Comments
 (0)