Changeset 9c0f3c17 in sasview for src/sas/sasgui/perspectives/fitting/pagestate.py
- Timestamp:
- Apr 4, 2017 10:50:04 AM (7 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/pagestate.py
r463e7ffc r9c0f3c17 18 18 import copy 19 19 import logging 20 import numpy 20 import numpy as np 21 21 import traceback 22 22 … … 412 412 for fittable, name, value, _, uncert, lower, upper, units in params: 413 413 if not value: 414 value = n umpy.nan414 value = np.nan 415 415 if not uncert or uncert[1] == '' or uncert[1] == 'None': 416 416 uncert[0] = False 417 uncert[1] = n umpy.nan417 uncert[1] = np.nan 418 418 if not upper or upper[1] == '' or upper[1] == 'None': 419 419 upper[0] = False 420 upper[1] = n umpy.nan420 upper[1] = np.nan 421 421 if not lower or lower[1] == '' or lower[1] == 'None': 422 422 lower[0] = False 423 lower[1] = n umpy.nan423 lower[1] = np.nan 424 424 if is_string: 425 425 p[name] = str(value) … … 451 451 lower = params.get(name + ".lower", '-inf') 452 452 units = params.get(name + ".units") 453 if std is not None and std is not n umpy.nan:453 if std is not None and std is not np.nan: 454 454 std = [True, str(std)] 455 455 else: 456 456 std = [False, ''] 457 if lower is not None and lower is not n umpy.nan:457 if lower is not None and lower is not np.nan: 458 458 lower = [True, str(lower)] 459 459 else: 460 460 lower = [True, '-inf'] 461 if upper is not None and upper is not n umpy.nan:461 if upper is not None and upper is not np.nan: 462 462 upper = [True, str(upper)] 463 463 else: … … 1102 1102 % (line, tagname, name)) 1103 1103 logger.error(msg + traceback.format_exc()) 1104 dic[name] = n umpy.array(value_list)1104 dic[name] = np.array(value_list) 1105 1105 setattr(self, varname, dic) 1106 1106
Note: See TracChangeset
for help on using the changeset viewer.