From ef486f07ac54754db11c0d5db7a71774118cf941 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Sun, 1 Mar 2020 12:53:04 -0800 Subject: [PATCH] make sure that there's a zero data point... --- fakedata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fakedata.py b/fakedata.py index 428dcde..abc3d2c 100644 --- a/fakedata.py +++ b/fakedata.py @@ -72,7 +72,7 @@ def linramp(start, end, wtarget, minsize): #print('lr', ndates) for x, i in enumerate(drange(start, end, minsize)): #print(repr((x, i))) - yield (i, (x + 1) / ndates * wtarget) + yield (i, x / ndates * wtarget) def distribute(s, e, prod, minsize): onehour = timedelta(hours=1)