Changeset 27b7acc in sasview for src/sans/perspectives


Ignore:
Timestamp:
Apr 3, 2014 7:28:51 PM (11 years ago)
Author:
butler
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:
bbd97e5
Parents:
34dbaf4
Message:

converted stored category file from pickle to json and a bit of cleanup

Location:
src/sans/perspectives/fitting
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/sans/perspectives/fitting/basepage.py

    r34dbaf4 r27b7acc  
    1010import math 
    1111import string 
    12 import cPickle as pickle 
    13 #import shutil 
     12import json 
    1413from collections import defaultdict 
    1514from wx.lib.scrolledpanel import ScrolledPanel 
     
    35853584            if not os.path.isfile(categorization_file): 
    35863585                categorization_file = CategoryInstaller.get_default_file() 
    3587             cat_file = open(categorization_file, 'rb') 
    3588                              
    3589             self.master_category_dict = pickle.load(cat_file) 
     3586            cat_file = open(categorization_file, 'rb')                            
     3587            self.master_category_dict = json.load(cat_file) 
    35903588            self._regenerate_model_dict() 
    35913589            cat_file.close() 
  • src/sans/perspectives/fitting/models.py

    r5777106 r27b7acc  
    948948 
    949949    CategoryInstaller.check_install(model_list=cat_model_list) 
    950      
    951950    def findModels(self): 
    952951        return self.__modelmanager.findModels() 
Note: See TracChangeset for help on using the changeset viewer.