Changeset 5322 for trunk/GSASIIdataGUI.py
- Timestamp:
- Aug 24, 2022 3:39:37 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/GSASIIdataGUI.py ¶
r5319 r5322 5697 5697 ''' 5698 5698 5699 try: 5700 SKLearn = False 5701 import sklearn.cluster 5702 SKLearn = True 5703 except: 5704 res = GSASIIpath.condaInstall('scikit-learn') 5705 if res: 5706 msg = 'Installation of the sklearn package failed with error:\n' + str(res) 5707 G2G.G2MessageBox(self,msg,'Install sklearn Error') 5699 5708 Id = GetGPXtreeItemId(self,self.root,'Cluster Analysis') 5700 5709 if not Id: 5710 5701 5711 Id = self.GPXtree.AppendItem(self.root,text='Cluster Analysis') 5702 5712 ClustDict = {'Files':[],'Method':'correlation','Limits':[0.,100.],'DataMatrix':[],'plots':'All', … … 5704 5714 self.GPXtree.SetItemPyData(Id,ClustDict) 5705 5715 else: 5716 ClustDict = self.GPXtree.GetItemPyData(Id) 5706 5717 print('Cluster Analysis exists - nothing done') 5707 5718 ClustDict['SKLearn'] = SKLearn 5708 5719 self.GPXtree.SelectItem(Id) 5709 5720
Note: See TracChangeset
for help on using the changeset viewer.