Skip to content

Commit

Permalink
Fix the data update record missing for sub scenrio. (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
wuwwen authored Nov 26, 2024
1 parent b4c4d9d commit a595c07
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mikeplus/datatableaccess.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from DHI.Amelia.DataModule.Services.DataTables import DataTableContainer
from DHI.Amelia.Infrastructure.Interface.UtilityHelper import GeoAPIHelper
from DHI.Amelia.DataModule.Interface.Services import IMuGeomTable
from DHI.Amelia.DataModule.Services.DataTables import AmlUndoRedoManager

from .dotnet import as_dotnet_list

Expand Down Expand Up @@ -72,10 +73,12 @@ def open_database(self):
datatables.SetActiveModel(data_source.ActiveModel)
datatables.SetEumAppUnitSystem(data_source.UnitSystemOption)
datatables.OnResetContainer(None, None)
datatables.UndoRedoManager = AmlUndoRedoManager()
self._datatables = datatables

def close_database(self):
"""Close database"""
self._datatables.UndoRedoManager.ClearUndoRedoBuffer()
self._datatables.DataSource.CloseDatabase()
self._datatables.Dispose()
self._datatables = None
Expand Down

0 comments on commit a595c07

Please sign in to comment.