Get rid of trailing underscore for params attribute

This commit is contained in:
Johannes Schönberger
2014-01-22 18:39:35 -05:00
parent a1f7d4eb73
commit 9905ff218f
6 changed files with 90 additions and 90 deletions
+2 -2
View File
@@ -33,14 +33,14 @@ First we create a transformation using explicit parameters:
tform = tf.SimilarityTransform(scale=1, rotation=math.pi / 2,
translation=(0, 1))
print(tform.params_)
print(tform.params)
"""
Alternatively you can define a transformation by the transformation matrix
itself:
"""
matrix = tform.params_.copy()
matrix = tform.params.copy()
matrix[1, 2] = 2
tform2 = tf.SimilarityTransform(matrix)