-
Notifications
You must be signed in to change notification settings - Fork 38
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
Adding Karhunen-Loeve #41
Conversation
Codecov Report
@@ Coverage Diff @@
## master #41 +/- ##
==========================================
- Coverage 94.06% 93.79% -0.27%
==========================================
Files 24 25 +1
Lines 1011 1241 +230
==========================================
+ Hits 951 1164 +213
- Misses 60 77 +17
Continue to review full report at Codecov.
|
Looks great! This would be really useful to have. There seems to be a problem with Python 2 however and it would be nice to fix this before merging. This is the output from Travis:
I've had a quick look at the code and can't see anything obvious that will break it, the main difference that I can think would have caused this is a difference in float division - in Python 2 a/b = Integer division and in Python 3 it is Floating point division. This could maybe cause an index to be rounded up at some point to a value that is too large? Thats the first thing that springs to mind anyway. Do you have a convenient setup to do some python 2 debugging? |
Hi! I ve seen it but didn't have time to fix it yet. Indeed, not obvious at first sight (agree with you, probably some integer division issue). |
This is hugely useful, thanks! Will merge it in now. |
Python implementation of KL basis based on Cannon 1996 and resp. IDL and Yorick (YAO) codes.