cleaning + testing

This commit is contained in:
Martin Diehl 2021-03-27 15:54:29 +01:00
parent cc72fad86a
commit 480b8315a7
5 changed files with 3 additions and 21 deletions

View File

@ -97,7 +97,7 @@ processing:
script:
- cd $DAMASKROOT/python
- pytest --basetemp=${TESTROOT}/python -v --cov --cov-report=term
- coverage report --fail-under=80
- coverage report --fail-under=85
except:
- master
- release

@ -1 +1 @@
Subproject commit 1e305f8bc3cbae5e412d1ac99a7a2675d1725120
Subproject commit 978d132e3baaf60e00f8ac2e70f00285c5cc0328

View File

@ -1,15 +0,0 @@
[Orthorombic]
elasticity hooke
plasticity none
lattice_structure orthorhombic
c11 106.75e9
c22 106.75e9
c33 106.75e9
c12 60.41e9
c13 60.41e9
c23 60.41e9
c44 28.34e9
c55 28.34e9
c66 28.34e9

View File

@ -1,3 +0,0 @@
[directSX]
mech none

View File

@ -71,7 +71,7 @@ class Rotation:
def __repr__(self):
"""Represent rotation as unit quaternion(s)."""
return f'Quaternion{" " if self.quaternion.shape == (4,) else "s of shape "+str(self.quaternion.shape)+chr(10)}'\
return f'Quaternion{" " if self.quaternion.shape == (4,) else "s of shape "+str(self.quaternion.shape[:-1])+chr(10)}'\
+ str(self.quaternion)