Changeset 9a5097c in sasview for src/sas/sascalc/pr/num_term.py
- Timestamp:
- Mar 26, 2017 11:33:16 PM (8 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:
- ed2276f
- Parents:
- 9146ed9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/pr/num_term.py
rb699768 r9a5097c 1 1 import math 2 import numpy 2 import numpy as np 3 3 import copy 4 4 import sys … … 152 152 def load(path): 153 153 # Read the data from the data file 154 data_x = n umpy.zeros(0)155 data_y = n umpy.zeros(0)156 data_err = n umpy.zeros(0)154 data_x = np.zeros(0) 155 data_y = np.zeros(0) 156 data_err = np.zeros(0) 157 157 scale = None 158 158 min_err = 0.0 … … 176 176 #err = 0 177 177 178 data_x = n umpy.append(data_x, test_x)179 data_y = n umpy.append(data_y, test_y)180 data_err = n umpy.append(data_err, err)178 data_x = np.append(data_x, test_x) 179 data_y = np.append(data_y, test_y) 180 data_err = np.append(data_err, err) 181 181 except: 182 182 logging.error(sys.exc_value)
Note: See TracChangeset
for help on using the changeset viewer.