Skip to content

Commit c4eb6ac

Browse files
FilippoOlivodario-coscia
authored andcommitted
Black formatting on condition
1 parent 0757633 commit c4eb6ac

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

pina/condition/condition_interface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ def problem(self, value):
4141
@staticmethod
4242
def _check_graph_list_consistency(data_list):
4343
"""
44-
Check if the list of :class:`torch_geometric.data.Data`/:class:`Graph`
44+
Check if the list of :class:`torch_geometric.data.Data`/:class:`Graph`
4545
objects is consistent.
4646
4747
:param data_list: List of graph type objects.
4848
:type data_list: list(torch_geometric.data.Data) | list(Graph)
4949
50-
:raises ValueError: Input data must be either torch_geometric.data.Data
50+
:raises ValueError: Input data must be either torch_geometric.data.Data
5151
or Graph objects.
5252
:raises ValueError: All elements in the list must have the same keys.
5353
:raises ValueError: Type mismatch in data tensors.

pina/condition/data_condition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def __new__(cls, input, conditional_variables=None):
2626
types of input data.
2727
2828
:param input: Input data for the condition.
29-
:type input: torch.Tensor | LabelTensor | Graph | \
29+
:type input: torch.Tensor | LabelTensor | Graph |
3030
torch_geometric.data.Data
3131
:param conditional_variables: Conditional variables for the condition.
3232
:type conditional_variables: torch.Tensor | LabelTensor

pina/condition/input_equation_condition.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __new__(cls, input, equation):
3333
:rtype: InputTensorEquationCondition | InputGraphEquationCondition
3434
3535
:raises ValueError: If input is not of type :class:`torch.Tensor`,
36-
:class:`LabelTensor`, :class:`Graph`, or
36+
:class:`LabelTensor`, :class:`Graph`, or
3737
:class:`torch_geometric.data.Data`.
3838
"""
3939

@@ -67,8 +67,8 @@ def __init__(self, input, equation):
6767
6868
.. note::
6969
If ``input`` is composed by a list of :class:`Graph`/
70-
:class:`torch_geometric.data.Data` objects, all elements must have
71-
the same structure (keys and data types). Moreover, at least one
70+
:class:`torch_geometric.data.Data` objects, all elements must have
71+
the same structure (keys and data types). Moreover, at least one
7272
attribute must be a :class:`LabelTensor`.
7373
"""
7474

pina/condition/input_target_condition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def __init__(self, input, target):
8787
8888
.. note::
8989
If either ``input`` or ``target`` are composed by a list of
90-
:class:`Graph`/:class:`torch_geometric.data.Data` objects, all
90+
:class:`Graph`/:class:`torch_geometric.data.Data` objects, all
9191
elements must have the same structure (keys and data types)
9292
"""
9393

0 commit comments

Comments
 (0)