Skip to content

Commit

Permalink
removed whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler committed Nov 2, 2023
1 parent b0161c1 commit c10a30e
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions redvox/common/offset_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@


__MIN_VALID_LATENCY_MICROS: Optional[float] = MIN_VALID_LATENCY_MICROS


__MIN_SAMPLES: Optional[float] = MIN_SAMPLES


__MIN_TIMESYNC_DURATION_MIN: Optional[float] = MIN_TIMESYNC_DURATION_MIN


Expand Down Expand Up @@ -292,10 +288,8 @@ def as_dict(self) -> dict:
@staticmethod
def from_dict(data: dict) -> "OffsetModel":
"""
create OffsetModel from a dictionary
:param data: dictionary to read
:return: OffsetModel
:return: OffsetModel from the dictionary
"""
result = OffsetModel.empty_model()
result.start_time = data["start_time"]
Expand Down Expand Up @@ -481,7 +475,6 @@ def get_binned_df(full_df: pd.DataFrame, bin_times: np.ndarray, n_samples: float
:param n_samples: number of samples to take per bin
:return: binned_df
"""

# Initialize the data frame
binned_df = pd.DataFrame()

Expand Down Expand Up @@ -526,7 +519,6 @@ def timesync_quality_check(
:param min_samples: minimum number of samples per bin
:return: True if timesync data passes all quality checks, False otherwise
"""

if min_timesync_dur_mins is None:
min_timesync_dur_mins = get_min_timesync_dur()

Expand Down Expand Up @@ -584,7 +576,6 @@ def compute_offsets(station_stats: List["StationStat"]) -> Optional[TimingOffset
:param station_stats: Statistics to compute offsets from.
:return: Timing offset information or None if there are no offsets or there is an error.
"""

# Preallocate the data arrays.
latencies: np.ndarray = np.zeros(len(station_stats), float)
offsets: np.ndarray = np.zeros(len(station_stats), float)
Expand Down

0 comments on commit c10a30e

Please sign in to comment.