From fe4020ae44a7667e40844c9e0b2aea652a95eb92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20P=2E=20P=C3=A9ba=C3=BF?= Date: Mon, 9 Dec 2024 10:25:15 -0500 Subject: [PATCH] #564: fixed missed initialization of object n-d index --- src/lbaf/Model/lbsObject.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lbaf/Model/lbsObject.py b/src/lbaf/Model/lbsObject.py index 84a58ccf..4bc45c26 100644 --- a/src/lbaf/Model/lbsObject.py +++ b/src/lbaf/Model/lbsObject.py @@ -124,6 +124,7 @@ def __init__( # collection_id is not used in LBAF but is required for migratable objects in vt self.__collection_id = collection_id + self.__index = index # Retrieve and set optionally defined fields if isinstance(user_defined, dict) or user_defined is None: @@ -153,9 +154,6 @@ def __init__( else: raise TypeError(f"subphases: {subphases} is of type {type(subphases)} but must be ") - if index is not None: - self.__index = index - def __repr__(self): return f"Object id: {self.get_id()}, load: {self.__load}"