🎨 Format Python code with psf/black

This commit is contained in:
ndem0
2024-02-09 11:25:00 +00:00
committed by Nicola Demo
parent 591aeeb02b
commit cbb43a5392
64 changed files with 1323 additions and 955 deletions

View File

@@ -26,7 +26,7 @@ class OperationInterface(Location, metaclass=ABCMeta):
@property
def geometries(self):
"""
"""
The geometries to perform set operation.
"""
return self._geometries
@@ -40,15 +40,15 @@ class OperationInterface(Location, metaclass=ABCMeta):
:rtype: list[str]
"""
return self.geometries[0].variables
@ abstractmethod
@abstractmethod
def is_inside(self, point, check_border=False):
"""
Check if a point is inside the resulting domain after
a set operation is applied.
:param point: Point to be checked.
:type point: torch.Tensor
:type point: torch.Tensor
:param bool check_border: If ``True``, the border is considered inside.
:return: ``True`` if the point is inside the Intersection domain, ``False`` otherwise.
:rtype: bool
@@ -64,4 +64,5 @@ class OperationInterface(Location, metaclass=ABCMeta):
for geometry in geometries:
if geometry.variables != geometries[0].variables:
raise NotImplementedError(
f'The geometries need to have same dimensions and labels.')
f"The geometries need to have same dimensions and labels."
)