Skip to content

Commit 9087437

Browse files
authored
Rename _oldcore module to _base (mwaskom#3418)
1 parent a42b894 commit 9087437

11 files changed

+13
-16
lines changed
File renamed without changes.

seaborn/_marks/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def _resolve(
198198

199199
def _infer_orient(self, scales: dict) -> str: # TODO type scales
200200

201-
# TODO The original version of this (in seaborn._oldcore) did more checking.
201+
# TODO The original version of this (in seaborn._base) did more checking.
202202
# Paring that down here for the prototype to see what restrictions make sense.
203203

204204
# TODO rethink this to map from scale type to "DV priority" and use that?

seaborn/axisgrid.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import matplotlib as mpl
1010
import matplotlib.pyplot as plt
1111

12-
from ._oldcore import VectorPlotter, variable_type, categorical_order
12+
from ._base import VectorPlotter, variable_type, categorical_order
1313
from ._compat import share_axis, get_legend_handles
1414
from . import utils
1515
from .utils import (

seaborn/categorical.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import matplotlib.pyplot as plt
1414

1515
from seaborn._core.typing import default, deprecated
16-
from seaborn._oldcore import infer_orient, categorical_order
16+
from seaborn._base import infer_orient, categorical_order
1717
from seaborn._stats.density import KDE
1818
from seaborn.relational import _RelationalPlotter
1919
from seaborn import utils

seaborn/distributions.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
from matplotlib.colors import to_rgba
1414
from matplotlib.collections import LineCollection
1515

16-
from ._oldcore import (
17-
VectorPlotter,
18-
)
16+
from ._base import VectorPlotter
1917

2018
# We have moved univariate histogram computation over to the new Hist class,
2119
# but still use the older Histogram for bivariate computation.

seaborn/relational.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import matplotlib as mpl
66
import matplotlib.pyplot as plt
77

8-
from ._oldcore import (
8+
from ._base import (
99
VectorPlotter,
1010
)
1111
from .utils import (

tests/test_axisgrid.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from numpy.testing import assert_array_equal, assert_array_almost_equal
99
import pandas.testing as tm
1010

11-
from seaborn._oldcore import categorical_order
11+
from seaborn._base import categorical_order
1212
from seaborn import rcmod
1313
from seaborn.palettes import color_palette
1414
from seaborn.relational import scatterplot

tests/test_core.py renamed to tests/test_base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
from seaborn.axisgrid import FacetGrid
1212
from seaborn._compat import get_colormap
13-
from seaborn._oldcore import (
13+
from seaborn._base import (
1414
SemanticMapping,
1515
HueMapping,
1616
SizeMapping,

tests/test_categorical.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717

1818
from seaborn import categorical as cat
1919

20-
from seaborn.utils import _version_predates, desaturate
21-
from seaborn._oldcore import categorical_order
20+
from seaborn._base import categorical_order
21+
from seaborn._compat import get_colormap, get_legend_handles
22+
from seaborn._testing import assert_plots_equal
2223
from seaborn.categorical import (
2324
_CategoricalPlotter,
2425
Beeswarm,
@@ -34,9 +35,7 @@
3435
violinplot,
3536
)
3637
from seaborn.palettes import color_palette
37-
from seaborn.utils import _draw_figure
38-
from seaborn._compat import get_colormap, get_legend_handles
39-
from seaborn._testing import assert_plots_equal
38+
from seaborn.utils import _draw_figure, _version_predates, desaturate
4039

4140

4241
PLOT_FUNCS = [

tests/test_distributions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
color_palette,
1515
light_palette,
1616
)
17-
from seaborn._oldcore import (
17+
from seaborn._base import (
1818
categorical_order,
1919
)
2020
from seaborn._statistics import (

tests/test_relational.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from numpy.testing import assert_array_equal, assert_array_almost_equal
1111

1212
from seaborn.palettes import color_palette
13-
from seaborn._oldcore import categorical_order
13+
from seaborn._base import categorical_order
1414

1515
from seaborn.relational import (
1616
_RelationalPlotter,

0 commit comments

Comments
 (0)