Skip to content

Commit

Permalink
Remove deprecation warning for seaborn (#163)
Browse files Browse the repository at this point in the history
+ bump seaborn>=0.12.0
  • Loading branch information
raphaelvallat authored Feb 13, 2024
1 parent 0035594 commit 776a257
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ mne>=1.3
numba>=0.57.1
matplotlib
ipywidgets
seaborn
seaborn>=0.12.0
lspopt
tensorpac>=0.6.5
scikit-learn
Expand Down
20 changes: 10 additions & 10 deletions yasa/tests/test_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def test_spindles_detect(self):
sp.get_mask()
sp.get_sync_events()
sp.get_sync_events(time_before=10) # Invalid time window
sp.plot_average(ci=None, filt=(None, 30)) # Skip bootstrapping
sp.plot_average(errorbar=None, filt=(None, 30)) # Skip bootstrapping
np.testing.assert_array_equal(np.squeeze(sp._data), data)
# Compare channels return dataframe with single cell
assert sp.compare_channels().shape == (1, 1)
Expand Down Expand Up @@ -154,7 +154,7 @@ def test_spindles_detect(self):
sp.get_sync_events(filt=(12, 15))
sp.summary()
sp.summary(grp_chan=True)
sp.plot_average(ci=None)
sp.plot_average(errorbar=None)
sp.get_coincidence_matrix()
sp.get_coincidence_matrix(scaled=False)
sp.plot_detection()
Expand Down Expand Up @@ -189,8 +189,8 @@ def test_spindles_detect(self):
sp.summary(grp_chan=False, grp_stage=True, aggfunc="median")
sp.summary(grp_chan=True, grp_stage=False)
sp.summary(grp_chan=True, grp_stage=True, sort=False)
sp.plot_average(ci=None)
sp.plot_average(hue="Stage", ci=None)
sp.plot_average(errorbar=None)
sp.plot_average(hue="Stage", errorbar=None)
sp.plot_detection()

# Test compare_channels function
Expand Down Expand Up @@ -234,7 +234,7 @@ def test_sw_detect(self):
sw.summary()
sw.get_mask()
sw.get_sync_events()
sw.plot_average(ci=None)
sw.plot_average(errorbar=None)
sw.plot_detection()
np.testing.assert_array_equal(np.squeeze(sw._data), data_sw)
np.testing.assert_array_equal(sw._hypno, hypno_sw)
Expand All @@ -259,7 +259,7 @@ def test_sw_detect(self):
sw = sw_detect(data_full, sf, chan_full)
sw.get_mask()
sw.get_sync_events()
sw.plot_average(ci=None)
sw.plot_average(errorbar=None)
sw.plot_detection()
sw.get_coincidence_matrix()
sw.get_coincidence_matrix(scaled=False)
Expand All @@ -276,8 +276,8 @@ def test_sw_detect(self):
sw.summary(grp_chan=False, grp_stage=True, aggfunc="median")
sw.summary(grp_chan=True, grp_stage=False)
sw.summary(grp_chan=True, grp_stage=True, sort=False)
sw.plot_average(ci=None)
sw.plot_average(hue="Stage", ci=None)
sw.plot_average(errorbar=None)
sw.plot_average(hue="Stage", errorbar=None)
sw.plot_detection()
# Check coupling
sw_sum = sw.summary()
Expand Down Expand Up @@ -335,8 +335,8 @@ def test_rem_detect(self):
rem.summary()
rem.get_mask()
rem.get_sync_events()
rem.plot_average(ci=None)
rem.plot_average(filt=(0.5, 5), ci=None)
rem.plot_average(errorbar=None)
rem.plot_average(filt=(0.5, 5), errorbar=None)

# With REM hypnogram
hypno_rem = 4 * np.ones_like(loc)
Expand Down

0 comments on commit 776a257

Please sign in to comment.