Skip to content

Commit

Permalink
Add arguments to choose SPARE-* column names
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdulkadirA committed Aug 10, 2022
1 parent 9dac338 commit 925469a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions NiBAx/core/model/datamodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 925469a

Please sign in to comment.