Skip to content

Commit 9635c5f

Browse files
committed
new version
1 parent ec28bd6 commit 9635c5f

7 files changed

Lines changed: 50 additions & 6 deletions

File tree

CHANGES.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ v0.2.1:
2323
2022-06-10 7d917ea, e5bd9da Handle all nans for time series
2424
2022-06-10 543102c Make test depend mpl version
2525
v0.2.2b0:
26-
2022-09-21 Fix for issue #4
26+
2022-09-21 7395572 Heatmap with y categories and gaps fails; https://github.com/hapi-server/plot-python/issues/3
27+
2022-09-21 6c2a400 datetick failure when one value; https://github.com/hapi-server/plot-python/issues/4
28+
v0.2.2b1:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ PYTHONVERS=python3.8 python3.7 python3.6 python3.5
4343

4444
# VERSION is updated in "make version-update" step and derived
4545
# from CHANGES.txt. Do not edit.
46-
VERSION=0.2.2b0
46+
VERSION=0.2.2b1
4747
SHELL:= /bin/bash
4848

4949
LONG_TESTS=false

hapiplot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
#ignores = ['datapath','savefig.frameon', 'text.latex.unicode', 'verbose.fileo', 'verbose.level', 'datapath']
1717
warnings.filterwarnings(action='ignore', category=UserWarning)
1818

19-
__version__ = '0.2.2b0'
19+
__version__ = '0.2.2b1'

hapiplot/hapiplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
def hapiplot(*args, **kwargs):
1818
"""Plot response from HAPI server.
1919
20-
Version: 0.2.2b0
20+
Version: 0.2.2b1
2121
2222
Demos
2323
-----

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# version is modified by misc/version.py (executed from Makefile). Do not edit.
2222
setup(
2323
name='hapiplot',
24-
version='0.2.2b0',
24+
version='0.2.2b1',
2525
author='Bob Weigel',
2626
author_email='rweigel@gmu.edu',
2727
packages=find_packages(),

test/bugs.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
# http://hapi-server.org/servers-dev/#server=FadenTemp&dataset=Iowa+City+Conditions&parameters=Temperature&start=2022-02-11T00:00:00.000Z&stop=2022-02-12T00:00:00.000Z&return=image&format=svg
66

77
all = False
8-
bn = 1
8+
bn = 3
99

1010
if bn == 1 or all == True:
11+
# No data from 10-20 but still colored
1112
server = 'http://hapi-server.org/servers-dev/TestData2.0/hapi'
1213
dataset = 'dataset1'
1314
parameter = 'spectra'
@@ -19,3 +20,17 @@
1920

2021
popts = {'logging': True, 'returnimage': False, 'usecache': False}
2122
hapiplot(data, meta, **popts)
23+
24+
if bn == 2 or all == True:
25+
# Should be "no data"
26+
server = 'http://hapi-server.org/servers-dev/TestData2.0/hapi'
27+
dataset = 'dataset1'
28+
parameter = 'spectra'
29+
start = '1970-01-01T00:00:11Z'
30+
stop = '1970-01-01T00:00:12Z'
31+
opts = {'logging': True, 'usecache': False}
32+
33+
data, meta = hapi(server, dataset, parameter, start, stop, **opts)
34+
35+
popts = {'logging': True, 'returnimage': False, 'usecache': False}
36+
hapiplot(data, meta, **popts)

test/bugs_old.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,3 +235,30 @@
235235

236236
from hapiplot import hapiplot
237237
hapiplot(data, meta)
238+
239+
if bn == 15 or all == True:
240+
server = 'http://hapi-server.org/servers-dev/TestData2.0/hapi'
241+
dataset = 'dataset1'
242+
parameter = 'spectra'
243+
start = '1970-01-01T00:00:00Z'
244+
stop = '1970-01-01T00:00:01Z'
245+
opts = {'logging': True, 'usecache': True}
246+
247+
data, meta = hapi(server, dataset, parameter, start, stop, **opts)
248+
249+
popts = {'logging': True, 'returnimage': False, 'usecache': False}
250+
hapiplot(data, meta, **popts)
251+
252+
if bn == 16 or all == True:
253+
# Should be "no data"
254+
server = 'http://hapi-server.org/servers-dev/TestData2.0/hapi'
255+
dataset = 'dataset1'
256+
parameter = 'scalar'
257+
start = '1970-01-01T00:00:11Z'
258+
stop = '1970-01-01T00:00:12Z'
259+
opts = {'logging': True, 'usecache': False, 'logging': True, 'format': 'csv'}
260+
261+
data, meta = hapi(server, dataset, parameter, start, stop, **opts)
262+
print(data)
263+
popts = {'logging': True, 'returnimage': False, 'usecache': False}
264+
hapiplot(data, meta, **popts)

0 commit comments

Comments
 (0)