Skip to content

Commit

Permalink
Merge branch 'master' into extend-pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianHofmann authored Feb 22, 2023
2 parents 23fe11b + 1d9f184 commit 6272e64
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 30 deletions.
2 changes: 1 addition & 1 deletion RELEASE_NOTES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Upcoming Release
* With this release, we change the license from copyleft GPLv3 to the more liberal MIT license with the consent of all major contributors `#263 <https://github.com/PyPSA/atlite/pull/263>`_.
* Added 1-axis vertical and 2-axis tracking option for solar pv and trigon_model = "simple"
* Added small documentation for get_windturbineconfig

* The deprecated functions `grid_cells` and `grid_coordinates` were removed.

Version 0.2.10
==============
Expand Down
29 changes: 0 additions & 29 deletions atlite/cutout.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,35 +385,6 @@ def prepared_features(self):
index = pd.MultiIndex.from_tuples(index, names=["module", "feature"])
return pd.Series(list(self.data), index, dtype=object)

def grid_coordinates(self):
"""
Array of grid coordinates, deprecated since v0.2.1.
"""
warn(
"The function `grid_coordinates` has been deprecated in favour of "
"`grid`",
DeprecationWarning,
)
logger.warning(
"The order of elements returned by `grid_coordinates` changed. "
"Check the output of your workflow for correctness."
)
return self.grid[["x", "y"]].values

def grid_cells(self):
"""
List of grid cells, deprecated since v0.2.1.
"""
warn(
"The function `grid_cells` has been deprecated in favour of `grid`",
DeprecationWarning,
)
logger.warning(
"The order of elements in `grid_cells` changed. "
"Check the output of your workflow for correctness."
)
return self.grid.geometry.to_list()

@CachedAttribute
def grid(self):
"""
Expand Down

0 comments on commit 6272e64

Please sign in to comment.