Skip to content

Commit

Permalink
Updated CRATE version after JOSS review.
Browse files Browse the repository at this point in the history
  • Loading branch information
BernardoFerreira committed Jul 31, 2023
1 parent c415096 commit d456e84
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.2
1.0.3
2 changes: 1 addition & 1 deletion src/cratepy/ioput/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def displayinfo(code, *args, **kwargs):
elif code == '0':
arguments = \
['CRATE - Clustering-based Nonlinear Analysis of Materials',
'Created by Bernardo P. Ferreira', 'Release 1.0.0 (Jun 2023)'] \
'Created by Bernardo P. Ferreira', 'Release 1.0.3 (Jul 2023)'] \
+ 2*[args[0], ] + list(args[1:3])
info = tuple(arguments)
template = '\n' + colorama.Fore.WHITE + tilde_line \
Expand Down
6 changes: 2 additions & 4 deletions src/cratepy/tensor/tensoroperations.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ def rotate_tensor(tensor, r):
# Return
return rtensor
# =============================================================================
def rotation_tensor_from_euler_angles(n_dim, euler_deg):
def rotation_tensor_from_euler_angles(euler_deg):
"""Set rotation tensor from Euler angles (Bunge convention).
The rotation tensor is defined as
Expand Down Expand Up @@ -708,8 +708,6 @@ def rotation_tensor_from_euler_angles(n_dim, euler_deg):
Parameters
----------
n_dim : int
Number of spatial dimensions.
euler_deg : tuple
Euler angles (degrees) sorted according to Bunge convention (Z1-X2-Z3).
Expand All @@ -730,7 +728,7 @@ def rotation_tensor_from_euler_angles(n_dim, euler_deg):
c3 = np.cos(euler_rad[2])
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Initialize rotation tensor
r = np.zeros((n_dim, n_dim))
r = np.zeros((3, 3))
# Build rotation tensor
r[0, 0] = c1*c3 - c2*s1*s3
r[1, 0] = c3*s1 + c1*c2*s3
Expand Down

0 comments on commit d456e84

Please sign in to comment.