Changeset 0b1d7d3 in sasview


Ignore:
Timestamp:
Dec 1, 2016 2:08:50 PM (8 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:
c9677c9
Parents:
7602675
Message:

Plugin models are loaded properly (if they can be found) and fixed a bug in parameter setting routine.

Location:
src/sas/sasgui/perspectives/fitting
Files:
2 edited

Legend:

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

    r7602675 r0b1d7d3  
    11771177            formfactor_pos = int(state.formfactorcombobox) 
    11781178        except: 
     1179            if self.categorybox.GetValue() == 'Customized Models' \ 
     1180                    and '[plug-in]' not in state.formfactorcombobox: 
     1181                state.formfactorcombobox = \ 
     1182                    '[plug-in] ' + state.formfactorcombobox 
    11791183            formfactor_pos = 0 
    11801184            for ind_form in range(self.formfactorbox.GetCount()): 
     
    15811585                if param[1] == listtorestore[j][1]: 
    15821586                    item_page = listtorestore[j] 
    1583                     item_page_info = statelist[j] 
     1587                    item_page_info = param 
    15841588                    if (item_page_info[1] == "theta" or item_page_info[1] == 
    15851589                            "phi") and not self._is_2D(): 
  • src/sas/sasgui/perspectives/fitting/pagestate.py

    r406644a r0b1d7d3  
    400400        formfactor, params = \ 
    401401            convert.convert_model(self.formfactorcombobox, params) 
     402        # if len(self.str_parameters) > 0: 
     403        #     formfactor, str_params = \ 
     404        #         convert.convert_model(formfactor, self.str_parameters) 
    402405 
    403406        # Only convert if old != new, otherwise all the same 
     
    421424                    else: 
    422425                        std = [False, ''] 
    423                     if lower is not None: 
     426                    if lower is not None and lower is not numpy.nan: 
    424427                        lower = [True, str(lower)] 
    425428                    else: 
    426                         lower = [False, ''] 
    427                     if upper is not None: 
     429                        lower = [True, '-inf'] 
     430                    if upper is not None and upper is not numpy.nan: 
    428431                        upper = [True, str(upper)] 
    429432                    else: 
    430                         upper = [False, ''] 
     433                        upper = [True, 'inf'] 
    431434                    param_list = [bool(fittable), str(name), str(info), 
    432435                                  "+/-", std, lower, upper, str(units)] 
Note: See TracChangeset for help on using the changeset viewer.