-
Notifications
You must be signed in to change notification settings - Fork 66
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
Add movie tutorial with xmovie package #452
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
@@ -0,0 +1,1515 @@ | |||
{ |
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.
Line #18. ax.set_title(f"time: {str(da['time'][timestamp].values)}")
Could get rid of a bunch of zeros in the title? e.g.
ax.set_title(f"time: {str(da['time'][timestamp].values)[:-19]}")
Though better if there was a nicer way to do that than arbitrary indexing.
Reply via ReviewNB
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.
True, I didn't bother I admit. I thought it goes beyond the aim of the tutorial. I don't want to hardcode [:-19]
which might work for this case but not for something else....
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.
I'll add an issue for this and we can tackle in the future.
@@ -0,0 +1,1515 @@ | |||
{ |
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.
What about adding overwrite_existing=True
? Otherwise this will throw an error if the file already exists and the testing might have trouble?
Reply via ReviewNB
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.
I was thinking about it, but also I thought it's better that the default does not have the overwrite_existing=True
so that people don't accidentally delete something they didn't want to. We can add it later if this creates issue for tests?
A tutorial for how to create movies using xmovie package.
Supersedes #427