Skip to content

Deprecate empty / empty_like / zeros_like - #184

Merged
inducer merged 3 commits into
inducer:mainfrom
alexfikl:deprecate-actx-empty
Oct 2, 2022
Merged

inducer merged 3 commits into
inducer:mainfrom
alexfikl:deprecate-actx-empty

Conversation

@alexfikl

@alexfikl alexfikl commented Jul 2, 2022

Copy link
Copy Markdown
Collaborator

As discussed in #178, this

  • deprecates empty and empty_like.
  • deprecates actx.np.empty_like for the contexts that supported that.
  • deprecates actx.zeros_like in favor of actx.np.zeros_like.

@alexfikl
alexfikl force-pushed the deprecate-actx-empty branch from 49c0f7e to b2785c4 Compare July 2, 2022 08:24
Comment thread arraycontext/context.py Outdated
@alexfikl
alexfikl force-pushed the deprecate-actx-empty branch from b2785c4 to 7283002 Compare July 3, 2022 07:17
@alexfikl
alexfikl requested a review from inducer July 3, 2022 07:18
@alexfikl
alexfikl force-pushed the deprecate-actx-empty branch from 7283002 to e1df9a8 Compare August 13, 2022 06:23
@alexfikl
alexfikl force-pushed the deprecate-actx-empty branch from e1df9a8 to 90aaf50 Compare September 30, 2022 07:27
@alexfikl
alexfikl force-pushed the deprecate-actx-empty branch from 90aaf50 to 19e3b3b Compare September 30, 2022 07:31

@inducer inducer left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

LGTM, thanks!

@inducer

inducer commented Oct 1, 2022

Copy link
Copy Markdown
Owner
  • @kaushikcfd, do you agree with this? I feel that, implicitly, these changes do some trajectory-setting. I've tried to make that more explicit by writing them down as guidelines in 69a3d94. If you feel that this is not a good direction for arraycontext, now would be the time to suggest alternatives.
  • @alexfikl Same for you. Could you look at the text I've added in 69a3d94 and complain if you disagree?

In either case, each of you, please let me know yea or nay so this can get merged.

@kaushikcfd kaushikcfd left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

One small query, otherwise this LGTM!

I do like that clearly specifying that using a lot of if actx.suport_xxx to branch is a non-pattern. Thanks!

Comment thread doc/index.rst
@inducer
inducer force-pushed the deprecate-actx-empty branch from 69a3d94 to cb38ca2 Compare October 1, 2022 19:06

@alexfikl alexfikl left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Added a little (non-blocking) question, but overall that looks sensible and we've been following most of it already!

Comment thread doc/index.rst
@inducer

inducer commented Oct 2, 2022

Copy link
Copy Markdown
Owner

Thanks to both of you for taking a look!

@inducer
inducer merged commit 8b4e2f2 into inducer:main Oct 2, 2022
@alexfikl
alexfikl deleted the deprecate-actx-empty branch October 2, 2022 07:46
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.

3 participants