From eca4b32b777d4f9c865c1853714a9a21adc80e0e Mon Sep 17 00:00:00 2001 From: Simon Bartels Date: Fri, 2 Aug 2024 15:29:09 +0200 Subject: [PATCH] Fixes #220 --- src/poli/core/registry.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/poli/core/registry.py b/src/poli/core/registry.py index e3d66b53..a2e15740 100644 --- a/src/poli/core/registry.py +++ b/src/poli/core/registry.py @@ -130,6 +130,12 @@ def register_isolated_function( force: bool = True, **kwargs, ): + if name == _OBSERVER: + warnings.warn( + "The name " + + name + + " is a reserved keyword. Please choose another name. Doing nothing." + ) if "conda_environment_location" in kwargs: conda_environment_name = kwargs["conda_environment_location"]