Ignore:
Timestamp:
Jul 11, 2016 4:36:55 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:
3b8efec
Parents:
9c90cf3
git-author:
Lewis O'Driscoll <lewis.o'driscoll@…> (07/06/16 12:35:37)
git-committer:
Lewis O'Driscoll <lewis.o'driscoll@…> (07/11/16 04:36:55)
Message:

Add option to input background level

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/corfunc/corfunc_state.py

    r9c90cf3 rb564ea2  
    1919    'qmax1_tcl': None, 
    2020    'qmax2_tcl': None, 
     21    'background_tcl': None 
    2122} 
    2223 
     
    4243        self.qmin = None 
    4344        self.qmax = [0, 0] 
     45        self.background = None 
    4446        self.outputs = None 
    4547 
     
    6567        state += "Qmin:         {}\n".format(str(self.qmin)) 
    6668        state += "Qmax:         {}\n".format(str(self.qmax)) 
     69        state += "Background:   {}\n".format(str(self.background)) 
    6770        if self.outputs is None: 
    6871            return state 
     
    8992        elif name == 'qmax2_tcl': 
    9093            self.qmax[1] = value 
     94        elif name == 'background_tcl': 
     95            self.background = value 
    9196 
    9297    def toXML(self, filename='corfunc_state.cor', doc=None, entry_node=None): 
Note: See TracChangeset for help on using the changeset viewer.