Skip to content

Commit 1505560

Browse files
committed
cleanup tools.
1 parent e114349 commit 1505560

File tree

2 files changed

+5
-33
lines changed

2 files changed

+5
-33
lines changed

tools/example.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
r = np.arange(TEST_LEN)
1010
idata = np.random.random(TEST_LEN)
1111

12-
def talib_example():
12+
def func_example():
1313
odata = talib.MA(idata)
1414
upper, middle, lower = talib.BBANDS(idata)
1515
kama = talib.KAMA(idata)
1616
plot(odata, upper, middle, lower, kama)
1717

1818
def abstract_example():
19-
sma = Function('ma')
19+
sma = Function('sma')
2020
input_arrays = sma.get_input_arrays()
2121
for key in input_arrays.keys():
2222
input_arrays[key] = idata
@@ -47,6 +47,8 @@ def plot(odata, upper, middle, lower, kama):
4747
print '%s functions: ' % group, functions
4848

4949
if len(sys.argv) == 1 or sys.argv[1] == 'func':
50-
talib_example()
50+
print 'Using talib.func'
51+
func_example()
5152
else:
53+
print 'Using talib.abstract'
5254
abstract_example()

tools/run_tests.py

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)