diff --git a/pyproject.toml b/pyproject.toml index d185501..17ac7aa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,7 +19,7 @@ packages = ["src/epilepsy2bids"] [project] name = "epilepsy2bids" -version = "0.0.5" +version = "0.0.6" authors = [ { name="Jonathan Dan", email="jonathan.dan@epfl.ch" }, { name="PEDESITE" } diff --git a/src/epilepsy2bids/eeg.py b/src/epilepsy2bids/eeg.py index 8d5912e..512b92e 100644 --- a/src/epilepsy2bids/eeg.py +++ b/src/epilepsy2bids/eeg.py @@ -209,12 +209,12 @@ def loadEdfAutoDetectMontage(cls, edfFile: str): channel = edf.getLabel(0) edf._close() if ( - channel == Eeg.ELECTRODES_10_20[0].upper() - or channel == f"{Eeg.ELECTRODES_10_20[0].upper()}-AVG" + channel.upper() == Eeg.ELECTRODES_10_20[0].upper() + or channel.upper() == f"{Eeg.ELECTRODES_10_20[0].upper()}-AVG" ): montage = Eeg.Montage.UNIPOLAR electrodes = Eeg.ELECTRODES_10_20 - elif channel == Eeg.BIPOLAR_DBANANA[0].upper(): + elif channel.upper() == Eeg.BIPOLAR_DBANANA[0].upper(): montage = Eeg.Montage.BIPOLAR electrodes = Eeg.BIPOLAR_DBANANA else: