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

Add _replace and others needed to support "copy" #243

Closed
rajeeja opened this issue Mar 21, 2023 · 1 comment
Closed

Add _replace and others needed to support "copy" #243

rajeeja opened this issue Mar 21, 2023 · 1 comment
Assignees
Labels
bug Something isn't working redesign Content relating to the ongoing redesign
Milestone

Comments

@rajeeja
Copy link
Contributor

rajeeja commented Mar 21, 2023

gg= ux.open_dataset("test/meshfiles/ugrid/outCSne30/outCSne30.ug", "test/meshfiles/ugrid/outCSne30/outCSne30_var2.nc")
cp_obj = gg.copy()
print(cp_obj)

resulting error:


  File "/Users/mbook/uxarray/uxarray/core/dataset.py", line 51, in _construct_dataarray
    return UxDataArray(xarr, uxgrid=self.uxgrid)
  File "/opt/homebrew/anaconda3/envs/tensorflow/lib/python3.10/site-packages/xarray/core/common.py", line 268, in __getattr__
    raise AttributeError(
AttributeError: 'UxDataset' object has no attribute 'uxgrid'

It'd be good to know what others we might need, this discussion is relevant:pydata/xarray#3980

@rajeeja rajeeja added bug Something isn't working redesign Content relating to the ongoing redesign labels Mar 21, 2023
@rajeeja rajeeja self-assigned this Mar 21, 2023
@philipc2 philipc2 added this to the Redesign milestone Mar 25, 2023
@erogluorhan
Copy link
Member

This has been adressed

@github-project-automation github-project-automation bot moved this from 📝 To Do to ✅ Done in UXarray Development May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working redesign Content relating to the ongoing redesign
Projects
Status: ✅ Done
Development

No branches or pull requests

3 participants