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 Sep 20, 2022
1 parent c9ca099 commit f8b3c71
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 f8b3c71

Please sign in to comment.