Skip to content

Commit

Permalink
Merge pull request #292 from adtzlr/remove-einsumt-warning
Browse files Browse the repository at this point in the history
Remove Warning if `einsumt` is not installed
  • Loading branch information
adtzlr authored Oct 3, 2022
2 parents 8729153 + 6b930fd commit afb8eea
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ All notable changes to this project will be documented in this file. The format
- Add `mask` argument to `mesh.runouts(mask=slice(None))`.
- Add `callback(stepnumber, substepnumber, substep)` argument to `CharacteristicCurve()` (like in `Job()`).

### Changed
- Remove Warning if `einsumt` requirement is not found (switch to numpy without any warnings).

### Fixed
- Fix ignored axis argument of `mesh.revolve(axis=1)`.

Expand Down
1 change: 0 additions & 1 deletion felupe/_assembly/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
try:
from einsumt import einsumt
except:
print("ImportWarning: Module `einsumt` not found. Fall back to `np.einsum()`.")
from numpy import einsum as einsumt
from scipy.sparse import csr_matrix as sparsematrix

Expand Down
1 change: 0 additions & 1 deletion felupe/_basis/_basis.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
try:
from einsumt import einsumt
except:
print("ImportWarning: Module `einsumt` not found. Fall back to `np.einsum()`.")
from numpy import einsum as einsumt


Expand Down
1 change: 0 additions & 1 deletion felupe/constitution/_kinematics.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
try:
from einsumt import einsumt
except:
print("ImportWarning: Module `einsumt` not found. Fall back to `np.einsum()`.")
from numpy import einsum as einsumt

from ..math import (
Expand Down
1 change: 0 additions & 1 deletion felupe/math/_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
try:
from einsumt import einsumt
except:
print("ImportWarning: Module `einsumt` not found. Fall back to `np.einsum()`.")
from numpy import einsum as einsumt


Expand Down

0 comments on commit afb8eea

Please sign in to comment.