def _dep_eeg_ref(add_eeg_ref):
 add_eeg_ref = bool(add_eeg_ref)
 if add_eeg_ref:
  warn('add_eeg_ref will be removed in 0.15, use set_eeg_reference() instead', DeprecationWarning)
 return add_eeg_ref

def _dep_eeg_ref ( add_eeg_ref ) : add_eeg_ref = bool ( add_eeg_ref ) if add_eeg_ref : warn ( 'add_eeg_ref will be removed in 0.15, use set_eeg_reference() instead' , DeprecationWarning ) return add_eeg_ref
helper for deprecation add_eeg_ref -> false .