Skip to content

Commit

Permalink
Merge pull request #76 from stella-bourdin/fix_accessor
Browse files Browse the repository at this point in the history
Fix accessor behavior
  • Loading branch information
stella-bourdin authored Dec 9, 2024
2 parents 23bac64 + f6265cf commit 28213eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
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

0 comments on commit 28213eb

Please sign in to comment.