Skip to content

Commit 74c2466

Browse files
committed
Add warning when nominal_srate <= 0
copied from @jfrey-xx
1 parent d78487b commit 74c2466

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

load_xdf.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@
351351
if temp(id).srate > 0
352352
temp(id).sampling_interval = 1/temp(id).srate;
353353
else
354+
warning('Nominal sampling rate of stream %s is 0. Calculated effective sampling rate might not be meaningful, relying on this rate is not recommended.', header.info.name);
354355
temp(id).sampling_interval = 0;
355356
end
356357
% fread parsing format for data values

0 commit comments

Comments
 (0)