Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update black #161

Merged
merged 1 commit into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions notebooks/run_visbrain.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""This file shows how to use YASA in combination with Visbrain.
"""

import numpy as np
from visbrain.gui import Sleep
from yasa import spindles_detect, sw_detect
Expand Down
1 change: 1 addition & 0 deletions yasa/detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- GitHub: https:/raphaelvallat/yasa
- License: BSD 3-Clause License
"""

import mne
import logging
import numpy as np
Expand Down
1 change: 1 addition & 0 deletions yasa/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
DANGER: This function has not been extensively debugged and validated.
Use at your own risk.
"""

import mne
import yasa
import logging
Expand Down
1 change: 1 addition & 0 deletions yasa/heart.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Author: Dr Raphael Vallat <[email protected]>, UC Berkeley.
Date: May 2022
"""

import logging
import numpy as np
import pandas as pd
Expand Down
1 change: 1 addition & 0 deletions yasa/hypno.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Hypnogram-related functions and class.
"""

import mne
import logging

Expand Down
1 change: 1 addition & 0 deletions yasa/io.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Helper functions for YASA (e.g. logger)
"""

import logging


Expand Down
1 change: 1 addition & 0 deletions yasa/numba.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This file contains Numba-accelerated functions used in the main detections.
"""

import numpy as np
from numba import jit

Expand Down
1 change: 1 addition & 0 deletions yasa/others.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This file contains several helper functions to manipulate 1D and 2D EEG data.
"""

import logging
import numpy as np
from scipy.interpolate import interp1d
Expand Down
1 change: 1 addition & 0 deletions yasa/plotting.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Plotting functions of YASA.
"""

import mne
import numpy as np
import pandas as pd
Expand Down
1 change: 1 addition & 0 deletions yasa/sleepstats.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This file contains several helper functions to calculate sleep statistics from
a one-dimensional sleep staging vector (hypnogram).
"""

# import warnings
import numpy as np
import pandas as pd
Expand Down
1 change: 1 addition & 0 deletions yasa/spectral.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This file contains several helper functions to calculate spectral power from
1D and 2D EEG data.
"""

import mne
import logging
import numpy as np
Expand Down
1 change: 1 addition & 0 deletions yasa/staging.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Automatic sleep staging of polysomnography data."""

import os
import mne
import glob
Expand Down
1 change: 1 addition & 0 deletions yasa/tests/test_detection.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the functions in yasa/spectral.py."""

import mne
import pytest
import unittest
Expand Down
1 change: 1 addition & 0 deletions yasa/tests/test_heart.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the functions in the yasa/heart.py file."""

import unittest
import numpy as np
from yasa.heart import hrv_stage
Expand Down
1 change: 1 addition & 0 deletions yasa/tests/test_hypno.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the functions in the yasa/hypno.py file."""

import mne
import pytest
import unittest
Expand Down
1 change: 1 addition & 0 deletions yasa/tests/test_hypnoclass.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the class Hypnogram."""

import mne
import pytest
import unittest
Expand Down
1 change: 1 addition & 0 deletions yasa/tests/test_io.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test I/O."""

import pytest
import logging
import unittest
Expand Down
1 change: 1 addition & 0 deletions yasa/tests/test_numba.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the functions in the yasa/numba.py file."""

import unittest
import numpy as np
from scipy.signal import detrend
Expand Down
1 change: 1 addition & 0 deletions yasa/tests/test_others.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the functions in the yasa/others.py file."""

import mne
import unittest
import numpy as np
Expand Down
1 change: 1 addition & 0 deletions yasa/tests/test_plotting.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the functions in the yasa/plotting.py file."""

import pytest
import unittest
import numpy as np
Expand Down
1 change: 1 addition & 0 deletions yasa/tests/test_sleepstats.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the functions in the yasa/sleepstats.py file."""

import unittest
import numpy as np
import pandas as pd
Expand Down
1 change: 1 addition & 0 deletions yasa/tests/test_spectral.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the functions in the yasa/spectral.py file."""

import mne
import pytest
import unittest
Expand Down
1 change: 1 addition & 0 deletions yasa/tests/test_staging.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the functions in yasa/staging.py."""

import mne
import unittest
import numpy as np
Expand Down
Loading