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 depreciation warnings that we can fix #110

Merged
merged 2 commits into from
Apr 7, 2022

Conversation

freemansw1
Copy link
Member

Resolves #108 and #101. New warnings summary is below. Note that the warnings are either upstream in trackpy or iris-related, which I don't think we want to deal with.

================================================== warnings summary ===================================================
tobac/tests/test_sample_data.py::test_sample_data
  C:\Users\sfreeman\miniconda3\envs\tobac_dev\lib\site-packages\iris\coords.py:1982: UserWarning: Collapsing a non-contiguous coordinate. Metadata may not be fully descriptive for 'time'.
    warnings.warn(msg.format(self.name()))

tobac/tests/test_sample_data.py::test_sample_data
  C:\Users\sfreeman\miniconda3\envs\tobac_dev\lib\site-packages\iris\coords.py:1982: UserWarning: Collapsing a non-contiguous coordinate. Metadata may not be fully descriptive for 'projection_y_coordinate'.
    warnings.warn(msg.format(self.name()))

tobac/tests/test_sample_data.py::test_sample_data
  C:\Users\sfreeman\miniconda3\envs\tobac_dev\lib\site-packages\iris\coords.py:1982: UserWarning: Collapsing a non-contiguous coordinate. Metadata may not be fully descriptive for 'projection_x_coordinate'.
    warnings.warn(msg.format(self.name()))

tobac/tests/test_sample_data.py::test_sample_data
  C:\Users\sfreeman\miniconda3\envs\tobac_dev\lib\site-packages\iris\coords.py:1976: UserWarning: Collapsing a multi-dimensional coordinate. Metadata may not be fully descriptive for 'latitude'.
    warnings.warn(msg.format(self.name()))

tobac/tests/test_sample_data.py::test_sample_data
  C:\Users\sfreeman\miniconda3\envs\tobac_dev\lib\site-packages\iris\coords.py:1976: UserWarning: Collapsing a multi-dimensional coordinate. Metadata may not be fully descriptive for 'longitude'.
    warnings.warn(msg.format(self.name()))

tobac/tests/test_sample_data.py::test_tracking_coord_order
  C:\Users\sfreeman\miniconda3\envs\tobac_dev\lib\site-packages\trackpy\utils.py:201: DeprecationWarning: Importing clear_output from IPython.core.display is deprecated since IPython 7.14, please import from IPython display
    from IPython.core.display import clear_output

tobac/tests/test_sample_data.py::test_tracking_3D
  C:\Users\sfreeman\miniconda3\envs\tobac_dev\lib\site-packages\iris\coords.py:1982: UserWarning: Collapsing a non-contiguous coordinate. Metadata may not be fully descriptive for 'geopotential_height'.
    warnings.warn(msg.format(self.name()))

-- Docs: https://docs.pytest.org/en/stable/warnings.html
============================================ 9 passed, 7 warnings in 7.62s ============================================

@freemansw1 freemansw1 added the bug Code that is failing or producing the wrong result label Apr 7, 2022
@freemansw1 freemansw1 added this to the Version 1.3 milestone Apr 7, 2022
@freemansw1 freemansw1 requested a review from w-k-jones April 7, 2022 15:06
@w-k-jones
Copy link
Member

Happy for this to be merged

@freemansw1 freemansw1 merged commit f545cec into tobac-project:dev Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Code that is failing or producing the wrong result
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants