Ignore:
Timestamp:
Dec 6, 2016 10:52:56 AM (7 years ago)
Author:
krzywon
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, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
9eb8fae
Parents:
77910cf
Message:

Force all models to go through _convert_to_sasmodels routine to ensure all sasmodels version changes are applied.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/fitting/pagestate.py

    r1c6bad0 ra321c52  
    357357        return obj 
    358358 
    359     def _is_sasmodels(self): 
     359    def _old_first_model(self): 
    360360        """ 
    361361        A check to see if the loaded save state was saved in SasView v4_0+ 
     
    391391            elif self.categorycombobox == 'Structure Factor': 
    392392                self.formfactorcombobox = 'hardsphere' 
    393         newname = convert._conversion_target(self.formfactorcombobox) 
    394         if newname == None: 
    395             return True 
    396         else: 
    397             return False 
    398393 
    399394    def param_remap_to_sasmodels_convert(self, params): 
     
    466461        """ 
    467462        # Create conversion dictionary to send to sasmodels 
     463        self._old_first_model() 
    468464        p = self.param_remap_to_sasmodels_convert(self.parameters) 
    469465        structurefactor, params = \ 
Note: See TracChangeset for help on using the changeset viewer.