-
Notifications
You must be signed in to change notification settings - Fork 141
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
Vector to vector binary operations cannot be done if the indexes contain both strings and symbols #501
Comments
Thanks @thomasnaude for pointing it out this issue. I think, to resolve this issue one has to look into, why sorting is done in binary operation of vectors here . |
You are right @Shekharrajak, that is definitely the problem. I looked into it and could not figure out why the sorting is done. But that certainly does not mean it is not needed..... |
Hello, @Shekharrajak , I looked at the code. |
Sorry for late response. That's great @cyrillefr ,PR is welcome. |
- added a utility method to fall back to string-sort in case sort raise error - this metod called in v2v_binary method - impending test removed and passes
Hello @Shekharrajak, @thomasnaude Sorry for the delay. I did not test the whole suite of specs and the simple trick I mentioned leads to fail another test. The macd method (in Why ? Nevertheless, I needed a sort_by(&:to_s), but ONLY when needed, so I had the idea to add a utility method, that |
…r-binary-operations Issue with v2v bin operation and indexes (SciRuby#501)
to reproduce :
The text was updated successfully, but these errors were encountered: