Changeset 5ae083b in sasview


Ignore:
Timestamp:
Oct 3, 2018 9:20:31 AM (5 years ago)
Author:
Paul Kienzle <pkienzle@…>
Children:
b9cc210
Parents:
db24ec1
Message:

Use ; rather than : as parameter separator so magnetic parameters can be copied and pasted; also, use 1, 1.5 rather than 1e-6, 1.5e-6 for magnetic defaults

File:
1 edited

Legend:

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

    ra4a1ac9 r5ae083b  
    28842884            self.magnetic_on = True 
    28852885            button.SetLabel("Magnetic OFF") 
    2886             m_value = 1.0e-06 
     2886            m_value = 1 
    28872887            for key in self.model.magnetic_params: 
    28882888                if key.count('M0') > 0: 
    28892889                    self.model.setParam(key, m_value) 
    2890                     m_value += 0.5e-06 
     2890                    m_value += 0.5 
    28912891        else: 
    28922892            self.magnetic_on = False 
     
    29502950        Get the string copies of the param names and values in the tap 
    29512951        """ 
    2952         content = 'sasview_parameter_values:' 
     2952        content = 'sasview_parameter_values;' 
    29532953        # Do it if params exist 
    29542954        if self.parameters: 
     
    32123212                logger.error(traceback.format_exc()) 
    32133213            content += name + ',' + str(check) + ',' + value + disfunc + ',' + \ 
    3214                        bound_lo + ',' + bound_hi + ':' 
     3214                       bound_lo + ',' + bound_hi + ';' 
    32153215 
    32163216        return content 
     
    32513251        context = {} 
    32523252        # put the text into dictionary 
    3253         lines = text.split(':') 
     3253        lines = text.split(';') 
    32543254        if lines[0] != 'sasview_parameter_values': 
    32553255            self._copy_info(False) 
Note: See TracChangeset for help on using the changeset viewer.