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

a few depreciation warnings to take care of #82

Open
m-weigand opened this issue Jun 28, 2024 · 0 comments
Open

a few depreciation warnings to take care of #82

m-weigand opened this issue Jun 28, 2024 · 0 comments
Assignees

Comments

@m-weigand
Copy link
Contributor

~/Programme/reda$ pytest -v lib/reda/testing/test_container_ert.py 
==================================================================================================================== test session starts =====================================================================================================================
platform linux -- Python 3.11.2, pytest-8.2.0, pluggy-1.5.0 -- /home/mweigand/.virtualenvs/crtomo/bin/python
cachedir: .pytest_cache
rootdir: /home/mweigand/Programme/reda
plugins: anyio-4.3.0
collected 5 items                                                                                                                                                                                                                                            

lib/reda/testing/test_container_ert.py::test_init PASSED                                                                                                                                                                                               [ 20%]
lib/reda/testing/test_container_ert.py::test_bad_init PASSED                                                                                                                                                                                           [ 40%]
lib/reda/testing/test_container_ert.py::test_init_with_data PASSED                                                                                                                                                                                     [ 60%]
lib/reda/testing/test_container_ert.py::test_merge_norrec_1 PASSED                                                                                                                                                                                     [ 80%]
lib/reda/testing/test_container_ert.py::test_merge_norrec_2 PASSED                                                                                                                                                                                     [100%]

====================================================================================================================== warnings summary ======================================================================================================================
../../.virtualenvs/crtomo/lib/python3.11/site-packages/sip_models/plot_helper.py:48
  /home/mweigand/.virtualenvs/crtomo/lib/python3.11/site-packages/sip_models/plot_helper.py:48: MatplotlibDeprecationWarning: The seaborn styles shipped by Matplotlib are deprecated since 3.6, as they no longer correspond to the styles shipped by seaborn. However, they will remain available as 'seaborn-v0_8-<style>'. Alternatively, directly use the seaborn API instead.
    plt.style.use('seaborn')

lib/reda/testing/test_container_ert.py::test_init_with_data
lib/reda/testing/test_container_ert.py::test_merge_norrec_1
lib/reda/testing/test_container_ert.py::test_merge_norrec_2
  /home/mweigand/Programme/reda/lib/reda/utils/norrec.py:329: DeprecationWarning: DataFrameGroupBy.apply operated on the grouping columns. This behavior is deprecated, and in a future version of pandas the grouping columns will be excluded from the operation. Either pass `include_groups=False` to exclude the groupings or explicitly select the grouping columns after groupby to silence this warning.
    aggregate = g.apply(ggt)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=============================================================================================================== 5 passed, 4 warnings in 1.41s ================================================================================================================

@m-weigand m-weigand self-assigned this Jun 28, 2024
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

No branches or pull requests

1 participant