Skip to content

Commit

Permalink
Merge pull request #689 from adtzlr/remove-dof-load-case-old-style
Browse files Browse the repository at this point in the history
Remove deprecated arguments in `dof.biaxial()` and `dof.shear()`
  • Loading branch information
adtzlr authored Mar 8, 2024
2 parents fc52ce3 + c91be34 commit fdf1d2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 55 deletions.
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

0 comments on commit fdf1d2f

Please sign in to comment.