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

@@ -78,7 +78,7 @@ class Intersection(OperationInterface):
5
"""
if mode != "random":
if mode != self.sample_modes:
raise NotImplementedError(
f"{mode} is not a valid mode for sampling."
)