-
Notifications
You must be signed in to change notification settings - Fork 83
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
TimeArray .prod is borked (because of overflow?) #93
Comments
And: a.var() |
Yea, I specifically didn't implement prod - since the units The same should probably apply to mul(self, val) when val is |
var on the other hand should be fixed, i'll have a PR shortly |
hmm, looks like it won't be so quick - it's a bit hairy - since my first stab at it makes us lose precision:
where a.var is
|
hmm, more info:
actually does what we want, but when we try to make it into a TimeArray, we get back
so maybe the implementation i have is fine |
more thinking, though, sorry for using this like a chat, |
Good point about the units. I think that it would be OK to raise a NotImplementedError for cases in which we get 'strange' units, maybe even explicitly mentioning that the units would undergo strange mutations through this transformation. I don't really see an obvious use-case for prod or var anyway. |
This is resolved in: |
a = ts.TimeArray([-1, 1.5,2,3])
a.prod()
Out[69]: -8739516.551889159 s
The text was updated successfully, but these errors were encountered: