Changeset f53d684 in sasview for test/corfunc
- Timestamp:
- Dec 5, 2017 12:31:07 PM (7 years ago)
- Branches:
- master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 5bb05a4
- Parents:
- 3053a4a
- git-author:
- Stuart Prescott <llimeht@…> (12/05/17 12:31:07)
- git-committer:
- Paul Kienzle <pkienzle@…> (12/05/17 12:31:07)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/corfunc/test/utest_corfunc.py
r86ba9d6 rf53d684 4 4 from __future__ import division, print_function 5 5 6 import os.path 6 7 import unittest 7 8 import time … … 11 12 from sas.sascalc.corfunc.corfunc_calculator import CorfuncCalculator 12 13 from sas.sascalc.dataloader.data_info import Data1D 14 15 16 def find(filename): 17 return os.path.join(os.path.dirname(__file__), filename) 13 18 14 19 … … 31 36 self.extrapolation = None 32 37 self.transformation = None 33 self.results = [np.loadtxt(fi lename+"_out.txt").T[2]38 self.results = [np.loadtxt(find(filename+"_out.txt")).T[2] 34 39 for filename in ("gamma1", "gamma3", "idf")] 35 40 … … 110 115 111 116 def load_data(filename="98929.txt"): 112 data = np.loadtxt(fi lename, dtype=np.float64)117 data = np.loadtxt(find(filename), dtype=np.float64) 113 118 q = data[:,0] 114 119 iq = data[:,1]
Note: See TracChangeset
for help on using the changeset viewer.