debug IC import

This commit is contained in:
Theophile Terraz committed 2024-09-30 17:39:16 +02:00
1 parent 6c8a2013d9
commit 0569425df1
3 files changed
+33 -8

No files matched your search

+3 -3
View File
@@ -38,7 +38,7 @@ from View.Tools.PamhyrTable import PamhyrTableModel
from View.InitialConditions.UndoCommand import (
SetCommand, AddCommand, DelCommand,
SortCommand, MoveCommand, InsertCommand,
DuplicateCommand, GenerateCommand,
DuplicateCommand, GenerateCommand, ReplaceDataCommand,
)
logger = logging.getLogger()
@@ -267,8 +267,8 @@ class InitialConditionTableModel(PamhyrTableModel):
)
self._undo.push(
InsertCommand(
self._lst, index,
ReplaceDataCommand(
self._lst,
list(
map(
lambda d: self._lst.new_from_data(*d),