[FieldTrip] Warning OPENEDF: Physical Minimum larger than Maximum\n
Katarina Bendtz
katarina.bendtz at gmail.com
Wed Nov 18 18:50:38 CET 2020
Dear experts:
Me and my colleague at another university idependently I get this warning when we try to open an edf file:
Warning OPENEDF: Physical Minimum larger than Maximum\n
I’m using fieldtrip 2020113. Looking at the source code
>
> https://github.com/fieldtrip/fieldtrip/blob/master/private/openedf.m
I read:
if (any(EDF.PhysMin >= EDF.PhysMax))
fprintf(2,'Warning OPENEDF: Physical Minimum larger than Maximum\n');
EDF.PhysMin = EDF.DigMin;
EDF.PhysMax = EDF.DigMax;
end
but then a couple of lines up, I see both EDF.PhysMin and EDF.PhysMax, (and also EDF.DigMin and EDF.DigMax) being set to the same thing:
EDF.PhysMin= str2num(char(fread(EDF.FILE.FID,[8,EDF.NS],'char')'));
EDF.PhysMax= str2num(char(fread(EDF.FILE.FID,[8,EDF.NS],'char')'));
EDF.DigMin = str2num(char(fread(EDF.FILE.FID,[8,EDF.NS],'char')')); %
EDF.DigMax = str2num(char(fread(EDF.FILE.FID,[8,EDF.NS],'char')')); %
So it is quite reasonable that I will get this warning. I’m puzzled.
1. What’s purpose of this warning?
2. Why are the variables set to the same value?
3. Can I safely ignore this warning?
4. Or is there something I misunderstood.
Thanks a lot,
Best,
Kat
Katarina Bendtz, PhD
Research Fellow
Kreiman Lab
Boston Children's Hospital
Harvard University
+1 (617) 390 45 16
3 Blackfan Circle
Boston, USA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20201118/9918571d/attachment.htm>
More information about the fieldtrip
mailing list