Browse Source

make sure that there's a zero data point...

main
John-Mark Gurney 4 years ago
parent
commit
ef486f07ac
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      fakedata.py

+ 1
- 1
fakedata.py View File

@@ -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)


Loading…
Cancel
Save