Ignore:
Timestamp:
Apr 4, 2017 10:50:04 AM (7 years ago)
Author:
Ricardo Ferraz Leal <ricleal@…>
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.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
f2940c4
Parents:
463e7ffc (diff), 1779e72 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

After merge conflict

File:
1 edited

Legend:

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

    r463e7ffc r9c0f3c17  
    1818import copy 
    1919import logging 
    20 import numpy 
     20import numpy as np 
    2121import traceback 
    2222 
     
    412412        for fittable, name, value, _, uncert, lower, upper, units in params: 
    413413            if not value: 
    414                 value = numpy.nan 
     414                value = np.nan 
    415415            if not uncert or uncert[1] == '' or uncert[1] == 'None': 
    416416                uncert[0] = False 
    417                 uncert[1] = numpy.nan 
     417                uncert[1] = np.nan 
    418418            if not upper or upper[1] == '' or upper[1] == 'None': 
    419419                upper[0] = False 
    420                 upper[1] = numpy.nan 
     420                upper[1] = np.nan 
    421421            if not lower or lower[1] == '' or lower[1] == 'None': 
    422422                lower[0] = False 
    423                 lower[1] = numpy.nan 
     423                lower[1] = np.nan 
    424424            if is_string: 
    425425                p[name] = str(value) 
     
    451451                lower = params.get(name + ".lower", '-inf') 
    452452                units = params.get(name + ".units") 
    453                 if std is not None and std is not numpy.nan: 
     453                if std is not None and std is not np.nan: 
    454454                    std = [True, str(std)] 
    455455                else: 
    456456                    std = [False, ''] 
    457                 if lower is not None and lower is not numpy.nan: 
     457                if lower is not None and lower is not np.nan: 
    458458                    lower = [True, str(lower)] 
    459459                else: 
    460460                    lower = [True, '-inf'] 
    461                 if upper is not None and upper is not numpy.nan: 
     461                if upper is not None and upper is not np.nan: 
    462462                    upper = [True, str(upper)] 
    463463                else: 
     
    11021102                                       % (line, tagname, name)) 
    11031103                                logger.error(msg + traceback.format_exc()) 
    1104                         dic[name] = numpy.array(value_list) 
     1104                        dic[name] = np.array(value_list) 
    11051105                    setattr(self, varname, dic) 
    11061106 
Note: See TracChangeset for help on using the changeset viewer.