Changeset 8bd5840 in sasview


Ignore:
Timestamp:
Nov 3, 2016 1:49:00 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:
3d8c49a
Parents:
20cfa23
Message:

Incorporate name and parameter name conversions and fix bug involving on loading v3.x fits.

File:
1 edited

Legend:

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

    rc8e1996 r8bd5840  
    11571157            category_pos = int(state.categorycombobox) 
    11581158        except: 
     1159            import sasmodels.convert as convert 
     1160            if state.formfactorcombobox is not None: 
     1161                state.formfactorcombobox, state.parameters = \ 
     1162                    convert.convert_model(state.formfactorcombobox, 
     1163                                          state.parameters) 
    11591164            state.formfactorcombobox = state.formfactorcombobox.lower() 
    11601165            state.formfactorcombobox = \ 
     
    15281533                        index_data = ((self.qmin_x <= self.data.x) & 
    15291534                                      (self.data.x <= self.qmax_x)) 
    1530                         val = str(len(self.data.x[index_data is True])) 
     1535                        val = str(len([index_data is True])) 
    15311536                        self.Npts_fit.SetValue(val) 
    15321537                    else: 
Note: See TracChangeset for help on using the changeset viewer.