Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

callback parameter order error in Centos7 #43

Closed
aweiu opened this issue May 31, 2017 · 2 comments
Closed

callback parameter order error in Centos7 #43

aweiu opened this issue May 31, 2017 · 2 comments

Comments

@aweiu
Copy link

aweiu commented May 31, 2017

const talib = require('talib')
const opt = {"name":"LINEARREG_SLOPE","startIdx":0,"endIdx":200,"inReal":[6.66,6.43,6.3,6.48,6.48,6.62,6.87,6.88,6.85,6.77,6.89,6.94,6.95,7.19,7.23,7.08,7.07,6.9,6.94,6.78,6.8,6.77,6.92,6.94,6.8,6.83,7.05,7.26,7.23,7.23,7.36,6.96,7.08,7.15,7.2,7.16,7.09,6.94,6.99,6.87,6.91,6.91,7.14,7.14,6.87,6.92,6.91,6.83,6.79,6.97,7.06,7.01,7.03,7,6.94,6.96,7,6.97,6.94,6.83,6.83,6.65,6.66,6.78,6.67,6.68,6.65,6.72,6.73,6.76,6.78,6.78,6.67,6.67,6.69,6.73,6.73,6.68,6.7,6.79,6.72,6.65,6.68,6.63,6.67,6.63,6.69,6.88,6.78,6.56,6.49,6.45,6.49,6.56,6.53,6.46,6.52,6.47,6.45,6.56,6.55,6.63,6.62,6.67,6.69,6.7,6.71,7.14,7.08,6.95,6.94,6.92,6.98,6.42,6.51,6.53,6.46,6.53,6.64,6.61,6.63,6.73,6.7,6.82,6.86,6.91,6.9,6.91,6.93,6.93,6.77,7.02,7.01,7.18,7.13,7.62,7.4,7.42,7.24,7.32,7.3,7.24,7.16,7.21,7.21,7.19,7.04,6.97,7.02,7,6.95,7.05,6.94,6.95,7.01,7.07,7.02,7.03,7.05,7.12,6.83,6.66,6.72,7.39,7.29,8.02,8.59,9.45,8.51,8.51,8.28,8.34,8.11,8.18,7.64,7.64,7.34,7.5,7.78,8.1,8.35,8.47,8.15,8.6,8.85,8.35,8.55,7.77,7.97,8.02,7.94,8.49,8.68,8.57,8.82,8.37,7.89,8.68,8.8,8.82,9.22],"optInTimePeriod":21}
talib.execute(opt, (...args) => console.log(args))

In mac os, the args is:

[ { begIndex: 20, nbElement: 181, result: { outReal: [Object] } } ]

In centos7, the args is:
[null, { begIndex: 20, nbElement: 181, result: { outReal: [Object] } } ]

@oransel
Copy link
Owner

oransel commented May 31, 2017

you may be running and old version of the module on osx. new one was pushed to npm yesterday.

@aweiu
Copy link
Author

aweiu commented May 31, 2017

ok,it works!Thanks!

@aweiu aweiu closed this as completed May 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants