sampling mode domain added

This commit is contained in:
Dario Coscia
2024-10-03 21:55:16 +02:00
committed by Nicola Demo
parent fd16fcf9b4
commit aef5a5d590
9 changed files with 46 additions and 10 deletions

View File

@@ -24,6 +24,9 @@ class OperationInterface(DomainInterface, metaclass=ABCMeta):
# assign geometries
self._geometries = geometries
# sampling mode, for now random is the only available
self.sample_modes = "random"
@property
def geometries(self):
"""
@@ -65,4 +68,4 @@ class OperationInterface(DomainInterface, metaclass=ABCMeta):
if geometry.variables != geometries[0].variables:
raise NotImplementedError(
f"The geometries need to have same dimensions and labels."
)
)