Changeset 99f3e053 in sasview


Ignore:
Timestamp:
Nov 11, 2016 6:44:40 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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:
f845454
Parents:
3f8c7bb
Message:

Minor update to the original fix

File:
1 edited

Legend:

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

    r3f8c7bb r99f3e053  
    14351435                    self.qmax_x = tempmax 
    14361436                    is_modified = True 
    1437                 is_modified = self._validate_Npts() 
     1437                if is_2Ddata: 
     1438                    is_modified = self._validate_Npts() 
     1439                else: 
     1440                    is_modified = self._validate_Npts_1D() 
    14381441            else: 
    14391442                self.fitrange = False 
     
    21662169                flag = False 
    21672170            else: 
    2168                 self.Npts_fit.SetValue(str(len(index_data[index_data is True]))) 
     2171                val = index_data[index_data is True] 
     2172                val = len(val) if isinstance(val, list) else 1 
     2173                self.Npts_fit.SetValue(str(val)) 
    21692174                self.fitrange = True 
    21702175 
Note: See TracChangeset for help on using the changeset viewer.