Skip to content

Commit

Permalink
Passed max_shift_seconds to milliseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
earthgecko authored Jan 7, 2018
1 parent 95161ae commit 6b4b7b7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ def __init__(self, time_series_a, time_series_b, max_shift_seconds=None, shift_i
Initializer
:param TimeSeries time_series_a: TimeSeries a.
:param TimeSeries time_series_b: TimeSeries b.
:param int max_shift_milliseconds: allowed maximal shift seconds.
:param int max_shift_seconds: allowed maximal shift seconds.
:param time_period: if given, correlate the data inside the time period only.
"""
super(CrossCorrelator, self).__init__(self.__class__.__name__, time_series_a, time_series_b)
self.shift_impact = shift_impact or DEFAULT_SHIFT_IMPACT
if max_shift_seconds is not None:
self.max_shift_milliseconds = max_shift_seconds
self.max_shift_milliseconds = max_shift_seconds * 1000
else:
self.max_shift_milliseconds = DEFAULT_ALLOWED_SHIFT_SECONDS * 1000

Expand Down

0 comments on commit 6b4b7b7

Please sign in to comment.