-
Notifications
You must be signed in to change notification settings - Fork 32
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
User Guide on Custom Grids & .from_xarray()
methods
#1086
Conversation
I have another PR for from_file and loading grids; do you think we want to merge that with this one? |
I think it's okay to keep them separate, as the one you are working on covers different areas than this one. |
…rray into philipc2/custom-grid
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
.from_xarray()
methods.from_xarray()
methods
May you take a look at this PR when you both have some time? |
@@ -220,7 +220,7 @@ def from_dict(cls, data, **kwargs): | |||
) | |||
|
|||
@classmethod | |||
def from_structured(cls, ds: xr.Dataset, tol: Optional[float] = 1e-10): | |||
def from_structured(cls, ds: xr.Dataset): |
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.
This is not related to this PR, why is the tolerance removed?
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.
Noticed this when I was working on the code; this variable wasn't used / was leftover.
Overview
UxDataArray.from_xarray()
andUxDataset.from_xarray()
, methods for converting from Xarray to UXarray with a customGrid