flake8
This commit is contained in:
parent
2d2b424643
commit
f667f44428
@ -77,7 +77,7 @@ def load_data_test(what):
|
|||||||
'O': x * base, # But replace O,H,L,C
|
'O': x * base, # But replace O,H,L,C
|
||||||
'H': x * base + 0.0001,
|
'H': x * base + 0.0001,
|
||||||
'L': x * base - 0.0001,
|
'L': x * base - 0.0001,
|
||||||
'C': x * base} for x in range(0,datalen)]}
|
'C': x * base} for x in range(0, datalen)]}
|
||||||
if what == 'lower':
|
if what == 'lower':
|
||||||
return {'BTC_UNITEST':
|
return {'BTC_UNITEST':
|
||||||
[{'T': pair[x]['T'], # Keep old dates
|
[{'T': pair[x]['T'], # Keep old dates
|
||||||
@ -86,7 +86,7 @@ def load_data_test(what):
|
|||||||
'O': 1 - x * base, # But replace O,H,L,C
|
'O': 1 - x * base, # But replace O,H,L,C
|
||||||
'H': 1 - x * base + 0.0001,
|
'H': 1 - x * base + 0.0001,
|
||||||
'L': 1 - x * base - 0.0001,
|
'L': 1 - x * base - 0.0001,
|
||||||
'C': 1 - x * base} for x in range(0,datalen)]}
|
'C': 1 - x * base} for x in range(0, datalen)]}
|
||||||
if what == 'sine':
|
if what == 'sine':
|
||||||
hz = 0.1 # frequency
|
hz = 0.1 # frequency
|
||||||
return {'BTC_UNITEST':
|
return {'BTC_UNITEST':
|
||||||
@ -96,7 +96,7 @@ def load_data_test(what):
|
|||||||
'O': math.sin(x*hz) / 1000 + base, # But replace O,H,L,C
|
'O': math.sin(x*hz) / 1000 + base, # But replace O,H,L,C
|
||||||
'H': math.sin(x*hz) / 1000 + base + 0.0001,
|
'H': math.sin(x*hz) / 1000 + base + 0.0001,
|
||||||
'L': math.sin(x*hz) / 1000 + base - 0.0001,
|
'L': math.sin(x*hz) / 1000 + base - 0.0001,
|
||||||
'C': math.sin(x*hz) / 1000 + base} for x in range(0,datalen)]}
|
'C': math.sin(x*hz) / 1000 + base} for x in range(0, datalen)]}
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user