Mercurial > hg > GlobalNeighbors
comparison tests/common.py @ 1:1b94f3bf97e5
* limit distance function
* start gridding
* improve unicode handling
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sat, 24 Jun 2017 14:02:14 -0700 |
parents | 5dba84370182 |
children |
comparison
equal
deleted
inserted
replaced
0:5dba84370182 | 1:1b94f3bf97e5 |
---|---|
1 """ | 1 """ |
2 common test functionality | 2 common test functionality |
3 """ | 3 """ |
4 | 4 |
5 import os | |
6 | |
7 here = os.path.dirname(os.path.abspath(__file__)) | |
8 data = os.path.join(here, 'data') | |
9 | |
10 def datafile(*path): | |
11 """return path to a test data file""" | |
12 return os.path.join(data, *path) |