Formatting
* Adding black as dev dependency * Formatting pina code * Formatting tests
This commit is contained in:
committed by
Nicola Demo
parent
4c4482b155
commit
42ab1a666b
@@ -24,8 +24,11 @@ class InputOutputPointsCondition(ConditionInterface):
|
||||
self.output_points = output_points
|
||||
|
||||
def __setattr__(self, key, value):
|
||||
if (key == 'input_points') or (key == 'output_points'):
|
||||
check_consistency(value, (LabelTensor, Graph, torch.Tensor, torch_geometric.data.Data))
|
||||
if (key == "input_points") or (key == "output_points"):
|
||||
check_consistency(
|
||||
value,
|
||||
(LabelTensor, Graph, torch.Tensor, torch_geometric.data.Data),
|
||||
)
|
||||
InputOutputPointsCondition.__dict__[key].__set__(self, value)
|
||||
elif key in ('_problem', '_condition_type'):
|
||||
elif key in ("_problem", "_condition_type"):
|
||||
super().__setattr__(key, value)
|
||||
|
||||
Reference in New Issue
Block a user