Skip to content
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

Xarray and Dask Example #51

Merged
merged 12 commits into from
Nov 14, 2018
Merged

Xarray and Dask Example #51

merged 12 commits into from
Nov 14, 2018

Conversation

jhamman
Copy link
Member

@jhamman jhamman commented Nov 3, 2018

Copy link
Member

@guillaumeeb guillaumeeb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finally I might be able to better understand Xarray (OK, did not took the time to dive in it yet).

Nice the PR with integrated binder!

Some problem here though, seems like the Notebook won't use Dask, not sure why. I did start the LocalCluster though. Maybe something in load_dataset?

xarray.ipynb Outdated Show resolved Hide resolved
xarray.ipynb Outdated Show resolved Hide resolved
xarray.ipynb Outdated Show resolved Hide resolved
xarray.ipynb Outdated Show resolved Hide resolved
xarray.ipynb Outdated Show resolved Hide resolved
@jhamman
Copy link
Member Author

jhamman commented Nov 4, 2018

ping @rabernat and @shoyer for a review of the content.

@jhamman
Copy link
Member Author

jhamman commented Nov 8, 2018

This is ready for a proper review. Tests were failing earlier due to some churn leading up to the 0.11 release of xarray. That's all behind us now and things are now in a good place.

@jhamman jhamman changed the title [Draft] Xarray and Dask Example Xarray and Dask Example Nov 8, 2018
@mrocklin
Copy link
Member

mrocklin commented Nov 9, 2018

I'll take another look at this this afternoon for style consistency.

Is there anyone who should review this on the Xarray side?

@jhamman
Copy link
Member Author

jhamman commented Nov 9, 2018

We can ask @shoyer and @rabernat to take a look.

@mrocklin
Copy link
Member

mrocklin commented Nov 9, 2018

Some micro-feedback:

  • I recommend merging cells 2 and 3, there doesn't seem to be a reason to keep them separate, and I like to minimize cells when possible.
  • Is the da pronoun standard in xarray? If not then maybe replace with air? The da pronoun slightly conflicts with dask.array
  • We make da_smooth but don't do anything with it. Is this intended?
  • Ah, I see that we use it below. Would it make sense to move it down there?

These are small bits of feedback though. In general I'm more than happy to merge this as-is.

@jhamman
Copy link
Member Author

jhamman commented Nov 9, 2018

@mrocklin - I'll address most of these. Yes, the da pronoun is common in xarray (da = DataArray()). This follows the standard usage of df for Pandas' DataFrame. I now this conflicts with dask.array so I'll adjust this accordingly.

@mrocklin
Copy link
Member

mrocklin commented Nov 9, 2018 via email

@jhamman
Copy link
Member Author

jhamman commented Nov 9, 2018

I addressed all of your comments, except the da one which I think we've agreed to let slide.

@mrocklin
Copy link
Member

mrocklin commented Nov 9, 2018 via email

xarray.ipynb Outdated Show resolved Hide resolved
@jhamman
Copy link
Member Author

jhamman commented Nov 14, 2018

Okay, @mrocklin - this is good to go.

@mrocklin mrocklin merged commit 0c39b1c into dask:master Nov 14, 2018
@mrocklin
Copy link
Member

Thanks for setting this up @jhamman !

@jhamman jhamman deleted the xarray branch November 14, 2018 23:29
@jhamman jhamman mentioned this pull request May 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants