From 039ba23e9d7170d86f90af9ad7dd415001ce1a43 Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Mon, 30 Oct 2023 16:29:58 +0100 Subject: [PATCH] Validate on __init__ --- pypesto/profile/options.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pypesto/profile/options.py b/pypesto/profile/options.py index ca24db7bb..cc8621211 100644 --- a/pypesto/profile/options.py +++ b/pypesto/profile/options.py @@ -66,6 +66,8 @@ def __init__( self.magic_factor_obj_value = magic_factor_obj_value self.whole_path = whole_path + self.validate() + def __getattr__(self, key): """Allow usage of keys like attributes.""" try: