gsp-eeg / EEGraSP

EEG signal analysis based on graph signal processing
https://eegrasp.readthedocs.io/
MIT License
1 stars 0 forks source link

Do not use isinstance to check if a variable is None #128

Closed aweinstein closed 2 months ago

aweinstein commented 2 months ago

In several parts of the code, we use the pattern:

if isinstance(var, type(None)):
    do_something()

Change it to:

if var is None:
    do_something()
lcortesg commented 2 months ago

@aweinstein fixes in the latest commit!