Skip to content

Commit

Permalink
fix: make new release
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusPic committed Aug 7, 2023
1 parent 6c71d9f commit d137716
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ehyd_tools/sww_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


def _index_series(date_time_index):
"""create a time series from a datetime index without loosing the timezone info"""
"""Create a time series from a datetime index without losing the timezone info."""
if isinstance(date_time_index, pd.DatetimeIndex) and date_time_index.tzinfo is not None:
return pd.Series(data=date_time_index, index=date_time_index)
else:
Expand All @@ -22,7 +22,7 @@ def _index_series(date_time_index):

def span_table(span_bool, min_span=None):
"""
time span with consist "True" with a minimum span of <min_span> are the resulting events
Time span with consist "True" with a minimum span of <min_span> are the resulting events.
Args:
span_bool (pandas.Series[bool]): "True"=Event
Expand Down Expand Up @@ -57,7 +57,7 @@ def span_table(span_bool, min_span=None):

def guess_freq(date_time_index, default=pd.Timedelta(minutes=1)):
"""
guess the frequency by evaluating the most often frequency
Guess the frequency by evaluating the most often frequency.
Args:
date_time_index (pandas.DatetimeIndex): index of a time-series
Expand Down

0 comments on commit d137716

Please sign in to comment.