Skip to content

Commit

Permalink
Fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
psomhorst committed Dec 18, 2024
1 parent 97954d6 commit adc66dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eitprocessing/datahandling/loading/draeger.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ def load_from_single_path(
previous_marker,
)

estimated_sample_frequency = round((len(time) - 1) / (time[-1] - time[0]), 6)
estimated_sample_frequency = round((len(time) - 1) / (time[-1] - time[0]), 4)

if not sample_frequency:
sample_frequency = estimated_sample_frequency

if sample_frequency != estimated_sample_frequency:
msg = "Provided sample frequency {} does not match the estimated sample frequency."
msg = "Provided sample frequency ({sample_frequency}) does not match the estimated sample frequency ({estimated_sample_frequency})."
warnings.warn(msg, RuntimeWarning)

eit_data = EITData(
Expand Down

0 comments on commit adc66dd

Please sign in to comment.