Changeset 9a5097c in sasview for test/pr_inversion
- 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
-
test/pr_inversion/test/utest_invertor.py
rb699768 r9a5097c 568 568 569 569 def load(path = "sphere_60_q0_2.txt"): 570 import numpy, math, sys 570 import numpy as np 571 import math 572 import sys 571 573 # Read the data from the data file 572 data_x = n umpy.zeros(0)573 data_y = n umpy.zeros(0)574 data_err = n umpy.zeros(0)574 data_x = np.zeros(0) 575 data_y = np.zeros(0) 576 data_err = np.zeros(0) 575 577 scale = None 576 578 if not path == None: … … 589 591 scale = 0.15*math.sqrt(y) 590 592 err = scale*math.sqrt(y) 591 data_x = n umpy.append(data_x, x)592 data_y = n umpy.append(data_y, y)593 data_err = n umpy.append(data_err, err)593 data_x = np.append(data_x, x) 594 data_y = np.append(data_y, y) 595 data_err = np.append(data_err, err) 594 596 except: 595 597 pass
Note: See TracChangeset
for help on using the changeset viewer.