Changeset a74d650a in sasview for DataLoader


Ignore:
Timestamp:
Jan 7, 2011 1:44:36 PM (14 years ago)
Author:
Jae Cho <jhjcho@…>
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:
614ce1b1
Parents:
2ca00c4
Message:

reduced an issue when both height and width are entered for smearing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DataLoader/extensions/smearer.cpp

    r7241d56 ra74d650a  
    148148                // that the total number of points is still what 
    149149                // the user would expect (downgrade resolution) 
     150                // Never down-grade npts_h. That will give incorrect slit smearing... 
    150151                if(npts_h>1 && npts_w>1){ 
    151                         npts_h = (int)ceil(sqrt((double)npts)); 
    152                         npts_w = npts_h; 
     152                        npts_h = npts;//(int)ceil(sqrt((double)npts)); 
     153                        // In general width is much smaller than height, so smaller npt_w 
     154                        // should work fine. 
     155                        // Todo: It is still very expansive in time. Think about better way. 
     156                        npts_w = (int)ceil(npts_h / 100); 
    153157                } 
    154158 
Note: See TracChangeset for help on using the changeset viewer.