-
Notifications
You must be signed in to change notification settings - Fork 0
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
Python translation of fcDatetick (plus some extra testing for datenum and a fix) #103
Conversation
All tests pass, I pushed a fix to the overwritten site data and removed a typo which caused the test to fail. I think it's good to merge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. All matlab and python tests for this PR pass
@@ -1,6 +1,6 @@ | |||
import numpy | |||
from fcDatevec import mydatevec | |||
from fcDatenum import mydatenum | |||
from fcDatenum import datenum | |||
|
|||
def mydoy(t): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typehints
Added the type hints now and also made a change to the test to remove a latent use of explicit matlab engine @j-emberton |
Note this is mostly a debugging plotting routine and its tests are largely a smoke test over various options so it's relatively low priority in terms of its exact matching MATLAB. After discussion with Gilberto we decided we don't really need it.
Along the way I discovered though that our implementation of
datenum
needs improving and so this PR also adds separate tests for this function and some updates