Skip to content

Commit 1c1d32f

Browse files
committed
fix module name conflict
1 parent 51624bb commit 1c1d32f

File tree

10 files changed

+216
-457
lines changed

10 files changed

+216
-457
lines changed

hapiclient/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from hapiclient.hapi import hapi
33

44
# Allow "from hapiclient import hapitime2datetime"
5-
from hapiclient.time import hapitime2datetime
5+
from hapiclient.hapitime import hapitime2datetime
66

77
# Allow "from hapiclient import HAPIError"
88
from hapiclient.util import HAPIError

hapiclient/hapi.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
import numpy as np
1313
from joblib import Parallel, delayed
1414

15-
from hapiclient.time import hapitime2datetime, hapitime_reformat
15+
from hapiclient.hapitime import hapitime2datetime, hapitime_reformat
1616
from hapiclient.util import setopts, log, warning, error
1717
from hapiclient.util import urlopen, urlretrieve, jsonparse
1818

1919

2020
def subset(meta, params):
21-
"""Extract subset of parameters from meta object returned by hapi()
21+
"""Extract subset of parameters from meta object returned by hapi().
2222
23-
metar = subset(meta, parameters) modifies meta["parameters"] array so
24-
it only contains elements for the time variable and the parameters in
25-
the comma-separated list `parameters`.
23+
``metar = subset(meta, parameters)`` modifies ``meta["parameters"]`` array
24+
so that it only contains elements for the time variable and the parameters
25+
in the comma-separated string ``parameters``.
2626
"""
2727

2828
if params == '':

hapiclient/test/readcompare.log

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
2+
Parameter(s) = scalar; run = short. cache = False; usecache = False
3+
___________________________________________________________
4+
Method total d/l->buff parse buff
5+
___________________________________________________________
6+
csv; numpy; no len. 0.2068 0.1556 0.0013
7+
csv; pandas; no len. 0.2195 0.1801 0.0036 (diffs in float values <= 1e-15)
8+
csv; numpy 0.2339 0.1799 0.0003 (diffs in float values <= 1e-15)
9+
csv; pandas 0.2396 0.1838 0.0025 (diffs in float values <= 1e-15)
10+
binary 0.2475 0.1748 0.0000 (diffs in float values <= 1e-15)
11+
12+
Parameter(s) = scalar,vector; run = short. cache = False; usecache = False
13+
___________________________________________________________
14+
Method total d/l->buff parse buff
15+
___________________________________________________________
16+
csv; numpy; no len. 0.2308 0.1813 0.0005
17+
csv; pandas; no len. 0.2422 0.1865 0.0031
18+
csv; numpy 0.2325 0.1823 0.0003
19+
csv; pandas 0.2432 0.1854 0.0029
20+
binary 0.2544 0.1697 0.0000
21+
22+
Parameter(s) = ; run = short. cache = False; usecache = False
23+
___________________________________________________________
24+
Method total d/l->buff parse buff
25+
___________________________________________________________
26+
csv; numpy; no len. 0.2327 0.1779 0.0069
27+
csv; pandas; no len. 0.2543 0.1821 0.0196
28+
csv; numpy 0.2249 0.1796 0.0042
29+
csv; pandas 0.2507 0.1816 0.0189
30+
binary 0.2379 0.1785 0.0000
31+
32+
Parameter(s) = scalar; run = short. cache = True; usecache = False
33+
_____________________________________________________________
34+
Method total d/l->file read & parse file
35+
_____________________________________________________________
36+
csv; numpy; no len. 0.2177 0.1751 0.0013
37+
csv; pandas; no len. 0.2107 0.1516 0.0028 (diffs in float values <= 1e-15)
38+
csv; numpy 0.2065 0.1760 0.0005 (diffs in float values <= 1e-15)
39+
csv; pandas 0.2110 0.1504 0.0035 (diffs in float values <= 1e-15)
40+
binary 0.2740 0.1852 0.0001 (diffs in float values <= 1e-15)
41+
42+
Parameter(s) = scalar,vector; run = short. cache = True; usecache = False
43+
_____________________________________________________________
44+
Method total d/l->file read & parse file
45+
_____________________________________________________________
46+
csv; numpy; no len. 0.2471 0.1848 0.0007
47+
csv; pandas; no len. 0.2412 0.1848 0.0031
48+
csv; numpy 0.2294 0.1802 0.0006
49+
csv; pandas 0.2084 0.1544 0.0029
50+
binary 0.2284 0.1516 0.0003
51+
52+
Parameter(s) = ; run = short. cache = True; usecache = False
53+
_____________________________________________________________
54+
Method total d/l->file read & parse file
55+
_____________________________________________________________
56+
csv; numpy; no len. 0.2335 0.1781 0.0077
57+
csv; pandas; no len. 0.2544 0.1828 0.0199
58+
csv; numpy 0.2141 0.1786 0.0040
59+
csv; pandas 0.2581 0.1776 0.0198
60+
binary 0.2963 0.1950 0.0003

0 commit comments

Comments
 (0)