Changes in src/sas/sascalc/pr/num_term.py [9a5097c:463e7ffc] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/pr/num_term.py
r9a5097c r463e7ffc 1 1 import math 2 import numpy as np2 import numpy 3 3 import copy 4 4 import sys 5 5 import logging 6 6 from sas.sascalc.pr.invertor import Invertor 7 8 logger = logging.getLogger(__name__) 7 9 8 10 class NTermEstimator(object): … … 152 154 def load(path): 153 155 # Read the data from the data file 154 data_x = n p.zeros(0)155 data_y = n p.zeros(0)156 data_err = n p.zeros(0)156 data_x = numpy.zeros(0) 157 data_y = numpy.zeros(0) 158 data_err = numpy.zeros(0) 157 159 scale = None 158 160 min_err = 0.0 … … 176 178 #err = 0 177 179 178 data_x = n p.append(data_x, test_x)179 data_y = n p.append(data_y, test_y)180 data_err = n p.append(data_err, err)180 data_x = numpy.append(data_x, test_x) 181 data_y = numpy.append(data_y, test_y) 182 data_err = numpy.append(data_err, err) 181 183 except: 182 logg ing.error(sys.exc_value)184 logger.error(sys.exc_value) 183 185 184 186 return data_x, data_y, data_err
Note: See TracChangeset
for help on using the changeset viewer.