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

Remove deprecations #4024

Merged
merged 7 commits into from
Feb 12, 2025
Merged

Remove deprecations #4024

merged 7 commits into from
Feb 12, 2025

Conversation

connorjward
Copy link
Contributor

@connorjward connorjward commented Feb 10, 2025

Description

  • Removes the deprecated .split() method
  • Removes a very old unused file
  • Deprecates V.subfunctions in favour of V.subspaces (this needs some discussion)

TODO

  • Make sure we don't raise our own warnings

Copy link

github-actions bot commented Feb 10, 2025

TestsPassed ✅Skipped ⏭️Failed ❌
Firedrake real8118 ran7404 passed714 skipped0 failed

Copy link

github-actions bot commented Feb 10, 2025

TestsPassed ✅Skipped ⏭️Failed ❌
Firedrake complex8105 ran6556 passed1549 skipped0 failed

@JHopeCollins
Copy link
Member

JHopeCollins commented Feb 10, 2025

LGTM, .split has been deprecated for a while now, good to have it removed.

I am very much in favour of changing FunctionSpace.subfunctions to FunctionSpace.subspaces. I haven't seen anywhere where being able to call v.subfunctions without knowing if v is a Function or FunctionSpace is useful enough to warrant the inaccurate naming.

We should put a message in the slack channel warning that Function.split will finally be removed, say next Monday or something.

@connorjward
Copy link
Contributor Author

LGTM, .split has been deprecated for a while now, good to have it removed.

I am very much in favour of changing FunctionSpace.subfunctions to FunctionSpace.subspaces. I haven't seen anywhere where being able to call v.subfunctions without knowing if v is a Function or FunctionSpace is useful enough to warrant the inaccurate naming.

We should put a message in the slack channel warning that Function.split will finally be removed, say next Monday or something.

I have added this to Wednesday's agenda. And assuming no issues we can merge later in the week following a couple of days warning.

* Remove `.split()`
* Deprecate `.subfunctions` for function spaces in favour of
  `.subspaces`.
@connorjward connorjward force-pushed the connorjward/remove-deprecations branch from 5ade89e to e84dfdc Compare February 12, 2025 10:11
Copy link
Member

@JHopeCollins JHopeCollins left a comment

Choose a reason for hiding this comment

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

I endorse this motion.
I've just left a suggestion to clarify the deprecation is only for FunctionSpace, not Function.

As we discussed offline, lets give a few days warning in slack before merging.

firedrake/functionspaceimpl.py Outdated Show resolved Hide resolved
firedrake/functionspaceimpl.py Outdated Show resolved Hide resolved
firedrake/functionspaceimpl.py Outdated Show resolved Hide resolved
@connorjward connorjward marked this pull request as draft February 12, 2025 10:33
@connorjward connorjward marked this pull request as ready for review February 12, 2025 13:27
@dham dham merged commit 426a498 into master Feb 12, 2025
20 checks passed
@dham dham deleted the connorjward/remove-deprecations branch February 12, 2025 16:18
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