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

DEPR: deprecate unnecessary functions in the yt.testing namespace, update docs #4439

Merged

Conversation

neutrinoceros
Copy link
Member

@neutrinoceros neutrinoceros commented May 6, 2023

PR Summary

follow up to #4434, let's trim out the remaining fat in yt.testing, and clean up some import statements that I missed in the first PR

half of the "added" lines are from copying yt.testing.expand_keywords into the only test module that uses it

@neutrinoceros neutrinoceros added deprecation deprecate features or remove deprecated ones refactor improve readability, maintainability, modularity labels May 6, 2023
@neutrinoceros neutrinoceros changed the title DEPR: deprecate yt.testing.assert_true and yt.testing.assert_less_equal DEPR: deprecate yt.testing.assert_true, yt.testing.assert_less_equal and yt.testing.assert_allclose_units May 6, 2023
@neutrinoceros neutrinoceros force-pushed the depr_assert_true_assert_less_equal branch from 3cce3d6 to 1aa3bf5 Compare May 6, 2023 09:07
@neutrinoceros neutrinoceros changed the title DEPR: deprecate yt.testing.assert_true, yt.testing.assert_less_equal and yt.testing.assert_allclose_units DEPR: deprecate unnecessary functions in the yt.testing namespace, update docs May 6, 2023
@neutrinoceros neutrinoceros force-pushed the depr_assert_true_assert_less_equal branch 2 times, most recently from b73c011 to 993a6a0 Compare May 6, 2023 12:20
@neutrinoceros neutrinoceros marked this pull request as ready for review May 6, 2023 14:29
@neutrinoceros neutrinoceros added this to the 4.2.0 milestone May 6, 2023
@neutrinoceros neutrinoceros force-pushed the depr_assert_true_assert_less_equal branch from 993a6a0 to d070976 Compare May 13, 2023 12:31
@neutrinoceros
Copy link
Member Author

switching to draft until I get rid of all remaining self-triggered deprecation warnings in answer tests (which requires manual checking since nose cannot treat them as errors)

@neutrinoceros neutrinoceros marked this pull request as draft May 13, 2023 12:32
@neutrinoceros neutrinoceros force-pushed the depr_assert_true_assert_less_equal branch 3 times, most recently from 800310a to e4b855a Compare May 13, 2023 13:43
@neutrinoceros
Copy link
Member Author

@yt-fido test this please

@neutrinoceros neutrinoceros marked this pull request as ready for review May 13, 2023 15:06
Copy link
Member

@matthewturk matthewturk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

before reviewing more, asking a question

@@ -265,7 +265,7 @@ union into a single ``darkmatter`` field. The ``all`` particle type is a
special case of this.

To create a particle union, you need to import the ``ParticleUnion`` class from
``yt.data_objects.particle_unions``, which you then create and pass into
``yt.data_objects.unions``, which you then create and pass into
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch

yt/frontends/enzo/tests/test_outputs.py Outdated Show resolved Hide resolved
jzuhone
jzuhone previously approved these changes May 15, 2023
@neutrinoceros neutrinoceros force-pushed the depr_assert_true_assert_less_equal branch 2 times, most recently from cd8f929 to b00b313 Compare May 15, 2023 16:38
@neutrinoceros neutrinoceros force-pushed the depr_assert_true_assert_less_equal branch from b00b313 to d5c760f Compare May 15, 2023 16:46
@neutrinoceros
Copy link
Member Author

@matthewturk do you still want to have a look ?

@matthewturk
Copy link
Member

LGTM

@matthewturk matthewturk merged commit 6400cfe into yt-project:main May 22, 2023
@neutrinoceros neutrinoceros deleted the depr_assert_true_assert_less_equal branch May 22, 2023 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecation deprecate features or remove deprecated ones docs refactor improve readability, maintainability, modularity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants