Skip to content

Commit

Permalink
Extra case issues, ..
Browse files Browse the repository at this point in the history
  • Loading branch information
danjjl committed Nov 7, 2024
1 parent 30bae40 commit 648e6ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ packages = ["src/epilepsy2bids"]

[project]
name = "epilepsy2bids"
version = "0.0.5"
version = "0.0.6"
authors = [
{ name="Jonathan Dan", email="[email protected]" },
{ name="PEDESITE" }
Expand Down
6 changes: 3 additions & 3 deletions src/epilepsy2bids/eeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 648e6ec

Please sign in to comment.