Skip to content

Commit

Permalink
format docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianHofmann committed Feb 22, 2023
1 parent ad6c9f5 commit 23fe11b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion atlite/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,8 @@ def convert_line_rating(

def line_rating(cutout, shapes, line_resistance, **params):
"""
Create a dynamic line rating time series based on the IEEE-738 standard
Create a dynamic line rating time series based on the IEEE-738 standard.
[1].
The steady-state capacity is derived from the balance between heat
Expand Down
8 changes: 6 additions & 2 deletions atlite/cutout.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,9 @@ def prepared_features(self):
return pd.Series(list(self.data), index, dtype=object)

def grid_coordinates(self):
"""Array of grid coordinates, deprecated since v0.2.1."""
"""
Array of grid coordinates, deprecated since v0.2.1.
"""
warn(
"The function `grid_coordinates` has been deprecated in favour of "
"`grid`",
Expand All @@ -399,7 +401,9 @@ def grid_coordinates(self):
return self.grid[["x", "y"]].values

def grid_cells(self):
"""List of grid cells, deprecated since v0.2.1."""
"""
List of grid cells, deprecated since v0.2.1.
"""
warn(
"The function `grid_cells` has been deprecated in favour of `grid`",
DeprecationWarning,
Expand Down

0 comments on commit 23fe11b

Please sign in to comment.