Changeset 5878a9ea in sasview for src/sas/sascalc/corfunc


Ignore:
Timestamp:
Jul 12, 2016 8:34:57 AM (8 years ago)
Author:
lewis
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:
e73e723
Parents:
815f7b8
Message:

Minor tweaks to UI and calculator behaviour

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/corfunc/corfunc_calculator.py

    r8bdc103 r5878a9ea  
    6767        self.lowerq = lowerq 
    6868        self.upperq = upperq 
    69         self.background = 0 
     69        self.background = self.compute_background() 
    7070        self._transform_thread = None 
    7171 
     
    9999        if self._data is None: return 0 
    100100        elif upperq is None and self.upperq is not None: upperq = self.upperq 
    101         elif upperq == 0: return 0 
     101        elif upperq is None and self.upperq is None: return 0 
    102102        q = self._data.x 
    103103        mask = np.logical_and(q > upperq[0], q < upperq[1]) 
Note: See TracChangeset for help on using the changeset viewer.