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

Fix accessor behavior #76

Merged
merged 4 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions docs/user_guide/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ To install the package, you can use ``pip``::

pip install huracanpy

This can fail with older python versions due to issues with installing cartopy through
pip. If this happens, use conda to install cartopy first
(e.g. ``conda install -c conda-forge cartopy``), then install huracanpy as normal
Nota Bene:

#. We support Python 3.8 to 3.12. In particular, Python 1.13 is not currently supported due to one of the dependencies not supporting it.
#. The installation may fail due to issues with installing cartopy through pip. If this happens, use conda to install cartopy first (e.g. ``conda install -c conda-forge cartopy``), then install huracanpy as normal.
2 changes: 1 addition & 1 deletion huracanpy/_accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def nunique(self):
@xr.register_dataset_accessor("hrcn")
class HuracanPyDatasetAccessor:
def __init__(self, dataset):
self._dataset = dataset.copy()
self._dataset = dataset

# %% Save
def save(self, filename):
Expand Down
Loading