Skip to content

Commit f9d76b3

Browse files
authored
#564: fixed missed initialization of object n-d index (#565)
1 parent 47f80f8 commit f9d76b3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lbaf/Model/lbsObject.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ def __init__(
124124

125125
# collection_id is not used in LBAF but is required for migratable objects in vt
126126
self.__collection_id = collection_id
127+
self.__index = index
127128

128129
# Retrieve and set optionally defined fields
129130
if isinstance(user_defined, dict) or user_defined is None:
@@ -153,9 +154,6 @@ def __init__(
153154
else:
154155
raise TypeError(f"subphases: {subphases} is of type {type(subphases)} but must be <class 'list'>")
155156

156-
if index is not None:
157-
self.__index = index
158-
159157
def __repr__(self):
160158
return f"Object id: {self.get_id()}, load: {self.__load}"
161159

0 commit comments

Comments
 (0)