Changeset 83ee3851 in sasview


Ignore:
Timestamp:
Jul 27, 2010 2:47:56 PM (15 years ago)
Author:
Gervaise Alina <gervyh@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
330c63b
Parents:
9fb814a
Message:

remove copy on data_loader

Location:
guiframe
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • guiframe/data_loader.py

    raebc4cc r83ee3851  
    245245            
    246246            name = parse_name(name=str(item.run[0]), expression="_") 
    247             if not name in parent.indice_load_data.keys(): 
    248                 parent.indice_load_data[name] = 0 
    249             else: 
     247            #if not name in parent.indice_load_data.keys(): 
     248            #    parent.indice_load_data[name] = 0 
     249            #else: 
    250250                ## create a copy of the loaded data 
    251251                 
     
    255255                # counter arguments stronger? Is this feature developed 
    256256                # to please at least 80% of the users or a special few? 
    257                 parent.indice_load_data[name] += 1 
    258                 name = name + "(copy %i)"%parent.indice_load_data[name] 
     257                #parent.indice_load_data[name] += 1 
     258                #name = name + "(copy %i)"%parent.indice_load_data[name] 
    259259                 
    260260            new_plot.name = name 
  • guiframe/gui_manager.py

    raebc4cc r83ee3851  
    919919            try: 
    920920                self._default_save_location = os.path.dirname(path) 
    921                 
    922                 #self.n_fileOpen += 1 
    923                 if self.n_fileOpen==1: 
    924                     pos= self.filemenu.GetMenuItemCount()-1 
    925                     #self.filemenu.InsertSeparator(pos ) 
    926                 
    927                 id = wx.NewId() 
    928                 filename= os.path.basename(path) 
    929                 dir= os.path.split(self._default_save_location)[1] 
    930                 title= str(os.path.join(dir,filename ))  
    931                 menuitem_name = str(self.n_fileOpen)+". "+ title 
    932                 position= self.filemenu.GetMenuItemCount()-2 
    933                 #self.filemenu.Insert(id=id, pos= position,text=menuitem_name,help=str(path) )  
    934                 #self.filePathList.append(( id, menuitem_name, path, title)) 
    935                 #wx.EVT_MENU(self, id, self._onreloaFile) 
    936                  
    937                 ## construct menu item for open file 
    938                 if self.n_fileOpen == self.n_maxfileopen +1: 
    939                     ## reach the maximun number of path to store 
    940                     self.n_fileOpen = 0 
    941                     id, menuitem_name , path, title = self.filePathList[0] 
    942                     self.filemenu.Delete(id) 
    943                     self.filePathList.pop(0) 
    944                     for item in self.filePathList: 
    945                         id, menuitem_name , path, title = item 
    946                         self.n_fileOpen += 1 
    947                         label = str(self.n_fileOpen)+". "+ title 
    948                         #self.filemenu.FindItemById(id).SetItemLabel(label)    
    949921            except: 
    950                 raise 
    951                 #pass 
     922                pass 
    952923        return path 
    953924     
Note: See TracChangeset for help on using the changeset viewer.