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 Warning if einsumt is not installed #292

Merged
merged 1 commit into from
Oct 3, 2022
Merged
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
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)`.

1 change: 0 additions & 1 deletion felupe/_assembly/_base.py
Original file line number Diff line number Diff line change
@@ -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

1 change: 0 additions & 1 deletion felupe/_basis/_basis.py
Original file line number Diff line number Diff line change
@@ -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


1 change: 0 additions & 1 deletion felupe/constitution/_kinematics.py
Original file line number Diff line number Diff line change
@@ -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 (
1 change: 0 additions & 1 deletion felupe/math/_tensor.py
Original file line number Diff line number Diff line change
@@ -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