Skip to content

Commit

Permalink
changed inconsistency_check to include a print statement.
Browse files Browse the repository at this point in the history
Probably not the cleanest way to do it
  • Loading branch information
saphjra committed Nov 20, 2024
1 parent 9acb926 commit 5e4c659
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pymovements/utils/parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ def _check_sampling_rate(recording_config: list[dict[str, Any]]) -> float | None
-------
float | None
The sampling rate of the first entry as a float if available, otherwise None.
Raises a warning if no recording configuration is found or
prints a warning if no recording configuration is found or
if the sampling rate is inconsistent.
"""
if not recording_config:
Expand All @@ -458,8 +458,7 @@ def _check_sampling_rate(recording_config: list[dict[str, Any]]) -> float | None
'Warning: Inconsistent sampling rates found. The first recorded sampling '
'rate is used to calculate the dataloss.',
)
sampling_rate = sampling_rates.pop()
sampling_rate = float(sampling_rate)
sampling_rate = float(recording_config[0]['sampling_rate'])
return sampling_rate


Expand Down

0 comments on commit 5e4c659

Please sign in to comment.