Skip to content

Commit

Permalink
Avoid conflicting xarray versions
Browse files Browse the repository at this point in the history
  • Loading branch information
enekomartinmartinez committed Oct 2, 2023
1 parent 038185f commit d9c43f4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 4 additions & 2 deletions docs/whats_new.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
What's New
==========
v3.12.0 (2023/XX/XX)
v3.12.0 (2023/10/02)
--------------------
New Features
~~~~~~~~~~~~
Expand All @@ -26,7 +26,9 @@ Performance

Internal Changes
~~~~~~~~~~~~~~~~
- Update libraries used for building documentation and `.readthedocs.yml` . (`@enekomartinmartinez <https://github.com/enekomartinmartinez>`_)
- Update libraries used for building documentation and `.readthedocs.yml`. (`@enekomartinmartinez <https://github.com/enekomartinmartinez>`_)
- Avoid conflicting :py:mod:`xarray` versions. (`@enekomartinmartinez <https://github.com/enekomartinmartinez>`_)
- Use `pandas[excel]` instead of xlrd dependency in the requirements. (`@gdrosos <https://github.com/gdrosos>`_)


v3.11.0 (2023/08/01)
Expand Down
3 changes: 1 addition & 2 deletions pysd/py_backend/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,7 @@ def set_values(self, values):

for index, value in values.items():
if isinstance(values.values[0], xr.DataArray):
self.data.loc[index].loc[value.coords] =\
value
self.data.loc[index].loc[value.coords] = value
else:
self.data.loc[index] = value
else:
Expand Down
3 changes: 1 addition & 2 deletions pysd/py_backend/lookups.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ def set_values(self, values):

for index, value in values.items():
if isinstance(values.values[0], xr.DataArray):
self.data.loc[index].loc[value.coords] =\
value
self.data.loc[index].loc[value.coords] = value
else:
self.data.loc[index] = value
else:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
numpy<1.24
pandas[excel]
parsimonious
xarray
xarray!=2023.8,!=2023.9
lxml
regex
chardet
Expand Down

0 comments on commit d9c43f4

Please sign in to comment.