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

Fix warnings #5470

Merged
merged 22 commits into from Oct 28, 2022
Merged

Fix warnings #5470

merged 22 commits into from Oct 28, 2022

Conversation

hoxbro
Copy link
Member

@hoxbro hoxbro commented Oct 5, 2022

Working through the backlogs of warnings from the test suite.

Warnings after

../../../../miniconda3/envs/holoviz/lib/python3.9/site-packages/plotly/graph_objs/__init__.py:288
../../../../miniconda3/envs/holoviz/lib/python3.9/site-packages/plotly/graph_objs/__init__.py:288
../../../../miniconda3/envs/holoviz/lib/python3.9/site-packages/plotly/graph_objs/__init__.py:288
../../../../miniconda3/envs/holoviz/lib/python3.9/site-packages/plotly/graph_objs/__init__.py:288
  /home/shh/miniconda3/envs/holoviz/lib/python3.9/site-packages/plotly/graph_objs/__init__.py:288: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    if LooseVersion(ipywidgets.__version__) >= LooseVersion("7.0.0"):

It needs to be fixed by plotly upstream: plotly/plotly.py#3897

holoviews/tests/core/data/test_spatialpandas.py: 21 warnings
  /home/shh/Development/holoviz/repos/holoviews/holoviews/core/data/spatialpandas.py:806: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
    data = {k: v if isscalar(v) else np.asarray(v) for k, v in data.items()}

It depends on the future of spatialpandas.

holoviews/tests/operation/test_datashader.py::DatashaderRasterizeTests::test_rasterize_dask_trimesh
holoviews/tests/operation/test_datashader.py::DatashaderRasterizeTests::test_rasterize_dask_trimesh_implicit_nodes
holoviews/tests/operation/test_datashader.py::DatashaderRasterizeTests::test_rasterize_dask_trimesh_with_node_vdims
  /home/shh/miniconda3/envs/holoviz/lib/python3.9/pickle.py:329: DeprecationWarning: Please use `append` from the `scipy.optimize` namespace, the `scipy.optimize.slsqp` namespace is deprecated.
    obj = getattr(obj, subpath)

holoviews/tests/operation/test_datashader.py::DatashaderRasterizeTests::test_rasterize_dask_trimesh
holoviews/tests/operation/test_datashader.py::DatashaderRasterizeTests::test_rasterize_dask_trimesh_implicit_nodes
holoviews/tests/operation/test_datashader.py::DatashaderRasterizeTests::test_rasterize_dask_trimesh_with_node_vdims
  /home/shh/miniconda3/envs/holoviz/lib/python3.9/pickle.py:329: DeprecationWarning: Please use `append` from the `scipy.signal` namespace, the `scipy.signal.filter_design` namespace is deprecated.
    obj = getattr(obj, subpath)

Related to Datashader (@ianthomas23 is aware of it)

holoviews/tests/plotting/bokeh/test_server.py::TestBokehServer::test_launch_server_with_complex_plot
  /home/shh/miniconda3/envs/holoviz/lib/python3.9/site-packages/tornado/ioloop.py:350: DeprecationWarning: make_current is deprecated; start the event loop first
    self.make_current()

holoviews/tests/plotting/bokeh/test_server.py::TestBokehServer::test_launch_server_with_complex_plot
holoviews/tests/plotting/bokeh/test_server.py::TestBokehServer::test_launch_server_with_stream
holoviews/tests/plotting/bokeh/test_server.py::TestBokehServer::test_launch_simple_server
holoviews/tests/plotting/bokeh/test_server.py::TestBokehServer::test_server_dynamicmap_with_dims
holoviews/tests/plotting/bokeh/test_server.py::TestBokehServer::test_server_dynamicmap_with_stream
holoviews/tests/plotting/bokeh/test_server.py::TestBokehServer::test_server_dynamicmap_with_stream_dims
  /home/shh/Development/holoviz/repos/panel/panel/io/server.py:880: DeprecationWarning: make_current is deprecated; start the event loop first
    loop.make_current()

A panel problem: holoviz/panel#3885

Warnings before
=============================== warnings summary ===============================
../../../../miniconda3/envs/holoviz/lib/python3.9/site-packages/plotly/graph_objs/__init__.py:288
../../../../miniconda3/envs/holoviz/lib/python3.9/site-packages/plotly/graph_objs/__init__.py:288
../../../../miniconda3/envs/holoviz/lib/python3.9/site-packages/plotly/graph_objs/__init__.py:288
../../../../miniconda3/envs/holoviz/lib/python3.9/site-packages/plotly/graph_objs/__init__.py:288
  /home/shh/miniconda3/envs/holoviz/lib/python3.9/site-packages/plotly/graph_objs/__init__.py:288: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    if LooseVersion(ipywidgets.__version__) >= LooseVersion("7.0.0"):

holoviews/tests/test_annotators.py::Test_annotate::test_annotate_overlay
  /home/shh/Development/holoviz/repos/holoviews/holoviews/core/data/pandas.py:68: DeprecationWarning: Having a non-string as a column name in a DataFrame is deprecated and will not be supported in Holoviews version 1.16.
    deprecation_warning(

holoviews/tests/core/test_datasetproperty.py: 15 warnings
holoviews/tests/core/data/test_pandasinterface.py: 4 warnings
holoviews/tests/element/test_elementconstructors.py: 4 warnings
holoviews/tests/element/test_paths.py: 1 warning
holoviews/tests/operation/test_datashader.py: 2 warnings
holoviews/tests/plotting/bokeh/test_barplot.py: 6 warnings
holoviews/tests/plotting/bokeh/test_boxwhiskerplot.py: 4 warnings
holoviews/tests/plotting/bokeh/test_gridplot.py: 1 warning
holoviews/tests/plotting/bokeh/test_overlayplot.py: 2 warnings
holoviews/tests/plotting/bokeh/test_radialheatmap.py: 17 warnings
holoviews/tests/plotting/bokeh/test_violinplot.py: 10 warnings
holoviews/tests/plotting/matplotlib/test_radialheatmap.py: 3 warnings
holoviews/tests/plotting/matplotlib/test_violinplot.py: 2 warnings
  /home/shh/Development/holoviz/repos/holoviews/holoviews/core/data/pandas.py:231: FutureWarning: In a future version of pandas, a length 1 tuple will be returned when iterating over a groupby with a grouper equal to a list of length 1. Don't supply a list with a single grouper to avoid this warning.
    data = [(k, group_type(v, **group_kwargs)) for k, v in

holoviews/tests/core/data/test_pandasinterface.py::PandasInterfaceTests::test_dataset_aggregate_string_types
  /home/shh/Development/holoviz/repos/holoviews/holoviews/core/data/pandas.py:254: FutureWarning: The default value of numeric_only in DataFrameGroupBy.mean is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function.
    df = grouped.aggregate(fn, **kwargs).reset_index()

holoviews/tests/core/data/test_spatialpandas.py: 21 warnings
  /home/shh/Development/holoviz/repos/holoviews/holoviews/core/data/spatialpandas.py:806: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
    data = {k: v if isscalar(v) else np.asarray(v) for k, v in data.items()}

holoviews/tests/core/data/test_xarrayinterface.py::XArrayInterfaceTests::test_dataset_transform_replace_kdim_on_grid
holoviews/tests/core/data/test_xarrayinterface.py::XArrayInterfaceTests::test_dataset_transform_replace_kdim_on_inverted_grid
holoviews/tests/core/data/test_xarrayinterface.py::DaskXArrayInterfaceTest::test_dataset_transform_replace_kdim_on_grid
holoviews/tests/core/data/test_xarrayinterface.py::DaskXArrayInterfaceTest::test_dataset_transform_replace_kdim_on_inverted_grid
  /home/shh/Development/holoviz/repos/holoviews/holoviews/core/data/xarray.py:674: UserWarning: rename 'x' to 'x' does not create an index anymore. Try using swap_dims instead or use set_index after rename to create an indexed coordinate.
    coords[k] = v.rename(**{v.name: k})

holoviews/tests/element/test_selection.py: 1 warning
holoviews/tests/operation/test_datashader.py: 17 warnings
  /home/shh/Development/holoviz/repos/holoviews/holoviews/operation/datashader.py:1481: UserWarning: rename 'x' to 'x' does not create an index anymore. Try using swap_dims instead or use set_index after rename to create an indexed coordinate.
    agg = agg.rename({'x': xdim.name, 'y': ydim.name})

holoviews/tests/element/test_selection.py: 1 warning
holoviews/tests/operation/test_datashader.py: 17 warnings
  /home/shh/Development/holoviz/repos/holoviews/holoviews/operation/datashader.py:1481: UserWarning: rename 'y' to 'y' does not create an index anymore. Try using swap_dims instead or use set_index after rename to create an indexed coordinate.
    agg = agg.rename({'x': xdim.name, 'y': ydim.name})

holoviews/tests/ipython/test_magics.py: 1 warning
holoviews/tests/plotting/test_plotutils.py: 11 warnings
holoviews/tests/plotting/bokeh/test_barplot.py: 3 warnings
holoviews/tests/plotting/bokeh/test_boxwhiskerplot.py: 4 warnings
holoviews/tests/plotting/bokeh/test_errorbarplot.py: 2 warnings
holoviews/tests/plotting/bokeh/test_graphplot.py: 6 warnings
holoviews/tests/plotting/bokeh/test_hextilesplot.py: 10 warnings
holoviews/tests/plotting/bokeh/test_histogramplot.py: 2 warnings
holoviews/tests/plotting/bokeh/test_labels.py: 5 warnings
holoviews/tests/plotting/bokeh/test_radialheatmap.py: 1 warning
holoviews/tests/plotting/bokeh/test_vectorfieldplot.py: 3 warnings
holoviews/tests/plotting/matplotlib/test_errorbarplot.py: 2 warnings
holoviews/tests/plotting/matplotlib/test_graphplot.py: 19 warnings
holoviews/tests/plotting/matplotlib/test_hextilesplot.py: 4 warnings
holoviews/tests/plotting/matplotlib/test_histogramplot.py: 2 warnings
holoviews/tests/plotting/matplotlib/test_labels.py: 3 warnings
holoviews/tests/plotting/matplotlib/test_radialheatmap.py: 3 warnings
holoviews/tests/plotting/matplotlib/test_sankey.py: 2 warnings
holoviews/tests/plotting/matplotlib/test_scatter3d.py: 1 warning
holoviews/tests/plotting/matplotlib/test_vectorfieldplot.py: 5 warnings
  /home/shh/Development/holoviz/repos/holoviews/holoviews/plotting/util.py:559: PendingDeprecationWarning: The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` instead.
    cmap = cm.get_cmap(cmap)

holoviews/tests/operation/test_datashader.py: 11 warnings
  /home/shh/Development/holoviz/repos/holoviews/holoviews/operation/datashader.py:793: UserWarning: rename 'x' to 'x' does not create an index anymore. Try using swap_dims instead or use set_index after rename to create an indexed coordinate.
    agg = cvs.line(df, x.name, yagg, agg_fn, axis=1, **agg_kwargs).rename(rename_dict)

holoviews/tests/operation/test_datashader.py::DatashaderAggregateTests::test_spikes_aggregate_with_height_count
holoviews/tests/operation/test_datashader.py::DatashaderAggregateTests::test_spikes_aggregate_with_height_count_dask
holoviews/tests/operation/test_datashader.py::DatashaderAggregateTests::test_spikes_aggregate_with_negative_height_count
holoviews/tests/operation/test_datashader.py::DatashaderAggregateTests::test_spikes_aggregate_with_positive_and_negative_height_count
  /home/shh/Development/holoviz/repos/holoviews/holoviews/operation/datashader.py:793: UserWarning: rename 'y' to 'y' does not create an index anymore. Try using swap_dims instead or use set_index after rename to create an indexed coordinate.
    agg = cvs.line(df, x.name, yagg, agg_fn, axis=1, **agg_kwargs).rename(rename_dict)

holoviews/tests/operation/test_datashader.py::DatashaderRasterizeTests::test_rasterize_dask_trimesh
holoviews/tests/operation/test_datashader.py::DatashaderRasterizeTests::test_rasterize_dask_trimesh_implicit_nodes
holoviews/tests/operation/test_datashader.py::DatashaderRasterizeTests::test_rasterize_dask_trimesh_with_node_vdims
  /home/shh/miniconda3/envs/holoviz/lib/python3.9/pickle.py:329: DeprecationWarning: Please use `append` from the `scipy.optimize` namespace, the `scipy.optimize.slsqp` namespace is deprecated.
    obj = getattr(obj, subpath)

holoviews/tests/operation/test_datashader.py::DatashaderRasterizeTests::test_rasterize_dask_trimesh
holoviews/tests/operation/test_datashader.py::DatashaderRasterizeTests::test_rasterize_dask_trimesh_implicit_nodes
holoviews/tests/operation/test_datashader.py::DatashaderRasterizeTests::test_rasterize_dask_trimesh_with_node_vdims
  /home/shh/miniconda3/envs/holoviz/lib/python3.9/pickle.py:329: DeprecationWarning: Please use `append` from the `scipy.signal` namespace, the `scipy.signal.filter_design` namespace is deprecated.
    obj = getattr(obj, subpath)

holoviews/tests/operation/test_datashader.py::DatashaderRasterizeTests::test_rasterize_trimesh_no_vdims
holoviews/tests/operation/test_datashader.py::DatashaderRasterizeTests::test_rasterize_trimesh_with_vdims_as_wireframe
  /home/shh/Development/holoviz/repos/holoviews/holoviews/operation/datashader.py:1160: UserWarning: rename 'x' to 'x' does not create an index anymore. Try using swap_dims instead or use set_index after rename to create an indexed coordinate.
    agg = cvs.line(segments, x=['x0', 'x1', 'x2', 'x0'],

holoviews/tests/operation/test_datashader.py::DatashaderRasterizeTests::test_rasterize_trimesh_no_vdims
holoviews/tests/operation/test_datashader.py::DatashaderRasterizeTests::test_rasterize_trimesh_with_vdims_as_wireframe
  /home/shh/Development/holoviz/repos/holoviews/holoviews/operation/datashader.py:1160: UserWarning: rename 'y' to 'y' does not create an index anymore. Try using swap_dims instead or use set_index after rename to create an indexed coordinate.
    agg = cvs.line(segments, x=['x0', 'x1', 'x2', 'x0'],

holoviews/tests/plotting/test_plotutils.py::TestMPLColormapUtils::test_mpl_colormap_instance
  /home/shh/Development/holoviz/repos/holoviews/holoviews/tests/plotting/test_plotutils.py:480: PendingDeprecationWarning: The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` instead.
    cmap = get_cmap('Greys')

holoviews/tests/plotting/bokeh/test_graphplot.py::TestBokehTriMeshPlot::test_trimesh_op_edge_color_linear_mean_node
holoviews/tests/plotting/matplotlib/test_graphplot.py::TestMplTriMeshPlot::test_trimesh_op_edge_color_linear_mean_node
  /home/shh/Development/holoviz/repos/holoviews/holoviews/element/util.py:318: FutureWarning: Passing 'suffixes' which cause duplicate columns {'color_x'} in the result is deprecated and will raise a MergeError in a future version.
    df = pd.merge(df, nodes, left_on=[v3.name], right_on=[idx.name])

holoviews/tests/plotting/bokeh/test_server.py::TestBokehServer::test_launch_server_with_complex_plot
  /home/shh/miniconda3/envs/holoviz/lib/python3.9/site-packages/tornado/ioloop.py:350: DeprecationWarning: make_current is deprecated; start the event loop first
    self.make_current()

holoviews/tests/plotting/bokeh/test_server.py::TestBokehServer::test_launch_server_with_complex_plot
holoviews/tests/plotting/bokeh/test_server.py::TestBokehServer::test_launch_server_with_stream
holoviews/tests/plotting/bokeh/test_server.py::TestBokehServer::test_launch_simple_server
holoviews/tests/plotting/bokeh/test_server.py::TestBokehServer::test_server_dynamicmap_with_dims
holoviews/tests/plotting/bokeh/test_server.py::TestBokehServer::test_server_dynamicmap_with_stream
holoviews/tests/plotting/bokeh/test_server.py::TestBokehServer::test_server_dynamicmap_with_stream_dims
  /home/shh/Development/holoviz/repos/panel/panel/io/server.py:880: DeprecationWarning: make_current is deprecated; start the event loop first
    loop.make_current()

holoviews/tests/plotting/matplotlib/test_callbacks.py: 1 warning
holoviews/tests/plotting/matplotlib/test_elementplot.py: 1 warning
holoviews/tests/plotting/matplotlib/test_overlayplot.py: 1 warning
holoviews/tests/plotting/matplotlib/test_pointplot.py: 26 warnings
  /home/shh/Development/holoviz/repos/holoviews/holoviews/plotting/mpl/element.py:547: UserWarning: No data for colormapping provided via 'c'. Parameters 'cmap' will be ignored
    artist = plot_fn(*plot_args, **plot_kwargs)

holoviews/tests/plotting/matplotlib/test_elementplot.py: 3 warnings
holoviews/tests/plotting/matplotlib/test_scatter3d.py: 8 warnings
  /home/shh/Development/holoviz/repos/holoviews/holoviews/plotting/mpl/chart3d.py:67: MatplotlibDeprecationWarning: The dist attribute was deprecated in Matplotlib 3.6 and will be removed two minor releases later.
    axis.dist = self.distance

holoviews/tests/plotting/matplotlib/test_graphplot.py: 16 warnings
  /home/shh/Development/holoviz/repos/holoviews/holoviews/plotting/mpl/graphs.py:171: UserWarning: No data for colormapping provided via 'c'. Parameters 'cmap' will be ignored
    nodes = ax.scatter(xs, ys, **node_opts)

holoviews/tests/plotting/matplotlib/test_layoutplot.py::TestLayoutPlot::test_layout_dimensioned_stream_title_update
holoviews/tests/plotting/matplotlib/test_layoutplot.py::TestLayoutPlot::test_layout_empty_subplots
holoviews/tests/plotting/matplotlib/test_layoutplot.py::TestLayoutPlot::test_layout_instantiate_subplots
holoviews/tests/plotting/matplotlib/test_layoutplot.py::TestLayoutPlot::test_layout_instantiate_subplots_transposed
holoviews/tests/plotting/matplotlib/test_layoutplot.py::TestLayoutPlot::test_layout_shared_axes_disabled
holoviews/tests/plotting/matplotlib/test_renderer.py::MPLRendererTest::test_get_size_column_plot
holoviews/tests/plotting/matplotlib/test_renderer.py::MPLRendererTest::test_get_size_row_plot
  /home/shh/Development/holoviz/repos/holoviews/holoviews/plotting/mpl/plot.py:947: MatplotlibDeprecationWarning: Auto-removal of overlapping axes is deprecated since 3.6 and will be removed two minor releases later; explicitly call ax.remove() as needed.
    subaxes = [plt.subplot(self.gs[ind], projection=proj)

holoviews/tests/plotting/matplotlib/test_radialheatmap.py: 224 warnings
  /home/shh/Development/holoviz/repos/holoviews/holoviews/plotting/mpl/heatmap.py:352: MatplotlibDeprecationWarning: Passing the width parameter of __init__() positionally is deprecated since Matplotlib 3.6; the parameter will become keyword-only two minor releases later.
    wedge = Wedge((0.5, 0.5), ybin[1], xbin[0], xbin[1], width)

holoviews/tests/plotting/plotly/test_barplot.py::TestBarsPlot::test_bars_stacked
holoviews/tests/plotting/plotly/test_barplot.py::TestBarsPlot::test_bars_stacked_inverted
holoviews/tests/plotting/plotly/test_boxwhiskerplot.py::TestBoxWhiskerPlot::test_boxwhisker_multi
holoviews/tests/plotting/plotly/test_boxwhiskerplot.py::TestBoxWhiskerPlot::test_boxwhisker_multi_invert_axes
holoviews/tests/plotting/plotly/test_violinplot.py::TestViolinPlot::test_violin_multi
holoviews/tests/plotting/plotly/test_violinplot.py::TestViolinPlot::test_violin_multi_invert_axes
  /home/shh/Development/holoviz/repos/holoviews/holoviews/core/data/pandas.py:231: FutureWarning:
  
  In a future version of pandas, a length 1 tuple will be returned when iterating over a groupby with a grouper equal to a list of length 1. Don't supply a list with a single grouper to avoid this warning.

holoviews/tests/plotting/plotly/test_bivariateplot.py: 6 warnings
holoviews/tests/plotting/plotly/test_scatter3dplot.py: 1 warning
holoviews/tests/plotting/plotly/test_surfaceplot.py: 4 warnings
  /home/shh/Development/holoviz/repos/holoviews/holoviews/plotting/util.py:559: PendingDeprecationWarning:
  
  The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` instead.

holoviews/tests/plotting/plotly/test_labelplot.py::TestMapboxLabelsPlot::test_labels_size
  /home/shh/Development/holoviz/repos/holoviews/holoviews/plotting/plotly/element.py:523: RuntimeWarning:
  
  divide by zero encountered in double_scalars

holoviews/tests/plotting/plotly/test_rgb.py::TestRGBPlot::test_rgb_invert_axes
  /home/shh/Development/holoviz/repos/holoviews/holoviews/tests/plotting/plotly/test_rgb.py:168: DeprecationWarning:
  
  ROTATE_90 is deprecated and will be removed in Pillow 10 (2023-07-01). Use Transpose.ROTATE_90 instead.

holoviews/tests/plotting/plotly/test_rgb.py::TestRGBPlot::test_rgb_invert_axes
  /home/shh/Development/holoviz/repos/holoviews/holoviews/tests/plotting/plotly/test_rgb.py:169: DeprecationWarning:
  
  FLIP_LEFT_RIGHT is deprecated and will be removed in Pillow 10 (2023-07-01). Use Transpose.FLIP_LEFT_RIGHT instead.

holoviews/tests/plotting/plotly/test_rgb.py::TestRGBPlot::test_rgb_invert_xaxis
  /home/shh/Development/holoviz/repos/holoviews/holoviews/tests/plotting/plotly/test_rgb.py:85: DeprecationWarning:
  
  FLIP_LEFT_RIGHT is deprecated and will be removed in Pillow 10 (2023-07-01). Use Transpose.FLIP_LEFT_RIGHT instead.

holoviews/tests/plotting/plotly/test_rgb.py::TestRGBPlot::test_rgb_invert_xaxis_and_yaxis
  /home/shh/Development/holoviz/repos/holoviews/holoviews/tests/plotting/plotly/test_rgb.py:126: DeprecationWarning:
  
  FLIP_LEFT_RIGHT is deprecated and will be removed in Pillow 10 (2023-07-01). Use Transpose.FLIP_LEFT_RIGHT instead.

holoviews/tests/plotting/plotly/test_rgb.py::TestRGBPlot::test_rgb_invert_xaxis_and_yaxis
  /home/shh/Development/holoviz/repos/holoviews/holoviews/tests/plotting/plotly/test_rgb.py:127: DeprecationWarning:
  
  FLIP_TOP_BOTTOM is deprecated and will be removed in Pillow 10 (2023-07-01). Use Transpose.FLIP_TOP_BOTTOM instead.

holoviews/tests/plotting/plotly/test_rgb.py::TestRGBPlot::test_rgb_invert_xaxis_and_yaxis_and_axes
  /home/shh/Development/holoviz/repos/holoviews/holoviews/tests/plotting/plotly/test_rgb.py:210: DeprecationWarning:
  
  ROTATE_270 is deprecated and will be removed in Pillow 10 (2023-07-01). Use Transpose.ROTATE_270 instead.

holoviews/tests/plotting/plotly/test_rgb.py::TestRGBPlot::test_rgb_invert_xaxis_and_yaxis_and_axes
  /home/shh/Development/holoviz/repos/holoviews/holoviews/tests/plotting/plotly/test_rgb.py:211: DeprecationWarning:
  
  FLIP_LEFT_RIGHT is deprecated and will be removed in Pillow 10 (2023-07-01). Use Transpose.FLIP_LEFT_RIGHT instead.

holoviews/tests/util/test_transform.py::TestDimTransforms::test_pandas_chained_methods
  /home/shh/Development/holoviz/repos/holoviews/holoviews/util/transform.py:665: FutureWarning:
  
  Passing additional kwargs to Rolling.mean has no impact on the result and is deprecated. This will raise a TypeError in a future version of pandas.

@hoxbro hoxbro marked this pull request as draft October 5, 2022 09:24
@codecov-commenter
Copy link

codecov-commenter commented Oct 5, 2022

Codecov Report

Merging #5470 (d767bc4) into master (39863f5) will decrease coverage by 0.03%.
The diff coverage is 80.32%.

@@            Coverage Diff             @@
##           master    #5470      +/-   ##
==========================================
- Coverage   88.13%   88.09%   -0.04%     
==========================================
  Files         302      302              
  Lines       62225    62262      +37     
==========================================
+ Hits        54842    54851       +9     
- Misses       7383     7411      +28     
Impacted Files Coverage Δ
holoviews/plotting/mpl/chart3d.py 57.04% <50.00%> (-0.52%) ⬇️
holoviews/plotting/util.py 70.64% <50.00%> (-0.24%) ⬇️
holoviews/tests/plotting/test_plotutils.py 97.19% <50.00%> (-0.55%) ⬇️
holoviews/tests/plotting/plotly/test_rgb.py 98.65% <83.33%> (-1.35%) ⬇️
holoviews/core/data/pandas.py 93.19% <100.00%> (-0.19%) ⬇️
holoviews/element/util.py 80.18% <100.00%> (+0.09%) ⬆️
holoviews/plotting/mpl/element.py 90.10% <100.00%> (+0.02%) ⬆️
holoviews/plotting/mpl/graphs.py 88.23% <100.00%> (+0.12%) ⬆️
holoviews/plotting/mpl/heatmap.py 93.30% <100.00%> (ø)
holoviews/plotting/plotly/element.py 85.14% <100.00%> (+0.03%) ⬆️
... and 5 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@hoxbro hoxbro force-pushed the fix_warnings branch 2 times, most recently from 14ddeae to ddff63c Compare October 6, 2022 07:55
@hoxbro hoxbro marked this pull request as ready for review October 6, 2022 10:01
@jlstevens
Copy link
Contributor

Just to say I went through this commit by commit with @hoxbro and I'm happy with everything except a few things that Simon has noted on my behalf.

@hoxbro
Copy link
Member Author

hoxbro commented Oct 7, 2022

@philippjfr, can you take a look at two of the changes when you have time?


Changed rename to swap_dims for xarray

Note: I'm pretty sure there is no problem related to this one. I just want to be sure.

UserWarning: rename 'x' to 'x' does not create an index anymore. Try using swap_dims instead or use set_index after rename to create an indexed coordinate.

Use ax.remove in _compute_gridspec

Note: This is more obscure, and I can be wrong here. If you are unsure, I can remove the commit from this PR and create a new PR solely focused on this commit.

The warning related to this is:

  /home/shh/Development/holoviz/repos/holoviews/holoviews/plotting/mpl/plot.py:947: MatplotlibDeprecationWarning: Auto-removal of overlapping axes is deprecated since 3.6 and will be removed two minor releases later; explicitly call ax.remove() as needed.
    subaxes = [plt.subplot(self.gs[ind], projection=proj)

@hoxbro hoxbro added this to the 1.15.2 milestone Oct 26, 2022
@hoxbro
Copy link
Member Author

hoxbro commented Oct 26, 2022

I have removed the fixes for the warning with uncertainties, so this should be ready to be merged now.

The removed fixes can be done in a future PR.

@hoxbro hoxbro requested a review from jlstevens October 26, 2022 07:48
@jlstevens
Copy link
Contributor

Went through these with @hoxbro and these are all very helpful updates! Merging.

@jlstevens jlstevens merged commit 3afce15 into holoviz:master Oct 28, 2022
@hoxbro hoxbro deleted the fix_warnings branch October 28, 2022 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants