diff --git a/NiBAx/core/model/datamodel.py b/NiBAx/core/model/datamodel.py index e33a051da..e342569f7 100644 --- a/NiBAx/core/model/datamodel.py +++ b/NiBAx/core/model/datamodel.py @@ -236,7 +236,8 @@ def GetDataStatistics(self): return stats - def AddSparesToDataModel(self,spares): - self.data.loc[:,'SPARE_AD'] = spares['SPARE_AD'] - self.data.loc[:,'SPARE_BA'] = spares['SPARE_BA'] + def AddSparesToDataModel(self,spares,SPARE_AD='SPARE_AD', + SPARE_BA='SPARE_BA'): + self.data.loc[:,SPARE_AD] = spares['SPARE_AD'] + self.data.loc[:,SPARE_BA] = spares['SPARE_BA'] self.data_changed.emit()