tests/subfiles.py

changeset 104
1ad664f783d6
parent 95
a3536e51f6bc
child 110
ea148f6fbd01
equal deleted inserted replaced
103:662de6b8cfc2 104:1ad664f783d6
14 zero. 14 zero.
15 ''' 15 '''
16 yield from ( 16 yield from (
17 report_problem('zero-determinant', bad_object = subfile_reference) 17 report_problem('zero-determinant', bad_object = subfile_reference)
18 for subfile_reference in model.subfile_references 18 for subfile_reference in model.subfile_references
19 if abs(subfile_reference.matrix.determinant() - 0) < 1e-15 19 if abs(subfile_reference.matrix.determinant() - 0) < 1e-5
20 ) 20 )
21 21
22 def scaling_description(scaling, axes = 'xyz'): 22 def scaling_description(scaling, axes = 'xyz'):
23 ''' 23 '''
24 Returns a pretty description of a scaling vector. The axes parameter 24 Returns a pretty description of a scaling vector. The axes parameter

mercurial