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 deprecated arguments in dof.biaxial() and dof.shear() #689

Merged
merged 1 commit into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ All notable changes to this project will be documented in this file. The format
- `math.grad(x, **kwargs)` is enhanced to return gradients of fields (like before) and the gradient-attribute of basis-arrays (added).
- The `grad_v` and `grad_u` arguments are removed from the form-expression decorator `Form`. This changes the required function signature of the weakform-callable to `weakform(v, u, **kwargs)`. The tuple of optional arguments is also removed. Gradients of `v` and `u` are now obtained by `math.grad(v)` or `v.grad`.

### Removed
- Remove the deprecated old-style argument `move` in `dof.biaxial()`.
- Remove the deprecated old-style arguments `move`, `axis_compression`, `axis_shear` and `compression` in `dof.shear()`.

## [7.19.1] - 2024-03-08

### Fixed
Expand Down
55 changes: 0 additions & 55 deletions src/felupe/dof/_loadcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ def biaxial(
axes=(0, 1),
clampes=(False, False),
sym=True,
move=None,
):
"""Return a dict of boundaries for biaxial loading between a left (applied or
symmetry face) and a right (applied) end face along a given pair of axes with
Expand Down Expand Up @@ -361,15 +360,6 @@ def biaxial(

"""

if move is not None:
from warnings import warn

warn(
"The `move` argument is deprecated, use `moves=(move, move)` instead.",
DeprecationWarning,
)
moves = (move, move)

f = field[0]

fxyz = ["fx", "fy", "fz"]
Expand Down Expand Up @@ -430,10 +420,6 @@ def shear(
moves=(0.2, 0.0, 0.0),
axes=(0, 1),
sym=True,
move=None,
axis_shear=None,
axis_compression=None,
compression=None,
):
"""Return a dict of boundaries for shear loading with optional combined compression
between a rigid bottom and a rigid top end face along a given pair of axes. The
Expand Down Expand Up @@ -513,47 +499,6 @@ def shear(

"""

if move is not None:
from warnings import warn

warn(
"The `move` argument is deprecated, use `moves` instead.",
DeprecationWarning,
)
moves = list(moves)
moves[0] = move

if axis_compression is not None:
from warnings import warn

warn(
"The `axis_compression` argument is deprecated, use `axes` instead.",
DeprecationWarning,
)
axes = list(axes)
axes[1] = axis_compression

if axis_shear is not None:
from warnings import warn

warn(
"The `axis_shear` argument is deprecated, use `axes` instead.",
DeprecationWarning,
)
axes = list(axes)
axes[0] = axis_shear

if compression is not None:
from warnings import warn

warn(
"The `compression` argument is deprecated, use `moves` instead.",
DeprecationWarning,
)
moves = list(moves)
moves[1] = compression[0]
moves[2] = -compression[1]

f = field[0]

if bottom is None:
Expand Down
Loading