Skip to content

Commit

Permalink
change methods and docstrings to use lower case h for hour
Browse files Browse the repository at this point in the history
  • Loading branch information
jarq6c committed Feb 9, 2024
1 parent 1e8c0bb commit 3f39564
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ def mark_event_flows(
series: pd.Series,
halflife: Union[float, str, pd.Timedelta],
window: Union[int, pd.tseries.offsets.DateOffset, pd.Index],
minimum_event_duration: Union[pd.Timedelta, datetime.timedelta, np.timedelta64, str, int] = '0H',
start_radius: Union[pd.Timedelta, datetime.timedelta, np.timedelta64, str, int] = '0H'
minimum_event_duration: Union[pd.Timedelta, datetime.timedelta, np.timedelta64, str, int] = '0h',
start_radius: Union[pd.Timedelta, datetime.timedelta, np.timedelta64, str, int] = '0h'
) -> pd.Series:
"""Model the trend in a streamflow time series by taking the max
of two rolling minimum filters applied in a forward and
Expand All @@ -236,10 +236,10 @@ def mark_event_flows(
window: int, offset, or BaseIndexer subclass, required
Size of the moving window for `pandas.Series.rolling.min`.
This filter is used to model the trend in `series`.
minimum_event_duration: pandas.Timedelta, datetime.timedelta, numpy.timedelta64, str, int, optional, default '0H'
minimum_event_duration: pandas.Timedelta, datetime.timedelta, numpy.timedelta64, str, int, optional, default '0h'
Enforce a minimum event duration. This should generally be set equal to
halflife to reduce the number of false positives flagged as events.
start_radius: pandas.Timedelta, datetime.timedelta, numpy.timedelta64, str, int, optional, default '0H'
start_radius: pandas.Timedelta, datetime.timedelta, numpy.timedelta64, str, int, optional, default '0h'
Shift event starts to a local minimum. Phase shifts imparted on the
original signal may advance or delay event start times depending upon how
much smoothing is required to eliminate noise.
Expand Down Expand Up @@ -293,8 +293,8 @@ def list_events(
series: pd.Series,
halflife: Union[float, str, pd.Timedelta],
window: Union[int, pd.tseries.offsets.DateOffset, pd.Index],
minimum_event_duration: Union[pd.Timedelta, datetime.timedelta, np.timedelta64, str, int] = '0H',
start_radius: Union[pd.Timedelta, datetime.timedelta, np.timedelta64, str, int] = '0H'
minimum_event_duration: Union[pd.Timedelta, datetime.timedelta, np.timedelta64, str, int] = '0h',
start_radius: Union[pd.Timedelta, datetime.timedelta, np.timedelta64, str, int] = '0h'
) -> pd.DataFrame:
"""Apply time series decomposition to mark event values in a streamflow
time series. Discretize continuous event values into indiviual events.
Expand All @@ -312,10 +312,10 @@ def list_events(
window: int, offset, or BaseIndexer subclass, required
Size of the moving window for `pandas.Series.rolling.min`.
This filter is used to model the trend in `series`.
minimum_event_duration: pandas.Timedelta, datetime.timedelta, numpy.timedelta64, str, int, optional, default '0H'
minimum_event_duration: pandas.Timedelta, datetime.timedelta, numpy.timedelta64, str, int, optional, default '0h'
Enforce a minimum event duration. This should generally be set equal to
halflife to reduce the number of false positives flagged as events.
start_radius: pandas.Timedelta, datetime.timedelta, numpy.timedelta64, str, int, optional, default '0H'
start_radius: pandas.Timedelta, datetime.timedelta, numpy.timedelta64, str, int, optional, default '0h'
Shift event starts to a local minimum. Phase shifts imparted on the
original signal may advance or delay event start times depending upon how
much smoothing is required to eliminate noise.
Expand Down

0 comments on commit 3f39564

Please sign in to comment.