Skip to content

Commit 9ecef93

Browse files
committed
Fix deletion of OD parameter
1 parent 72e28b6 commit 9ecef93

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/objdictgen/node.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -931,13 +931,13 @@ def UpdateMapVariable(self, index: int, subindex: int, size: int):
931931

932932
def RemoveLine(self, index: int, maxval: int, incr: int = 1):
933933
""" Remove the given index and shift all the following indexes """
934-
# FIXME: This function is called from NodeManager.RemoveCurrentVariable()
935-
# but uncertain on how it is used.
936934
i = index
937935
while i < maxval and self.IsEntry(i + incr):
936+
# FIXME: Not sure what this does
938937
self.Dictionary[i] = self.Dictionary[i + incr]
939938
i += incr
940939
self.Dictionary.pop(i)
940+
self.ParamsDictionary.pop(i, None)
941941

942942
def RemoveIndex(self, index: int|Iterable[int]) -> None:
943943
""" Remove the given index or indexes """

0 commit comments

Comments
 (0)