1aaa17e4ec9c87b53cb02ea333e2bc8e6074fc59,imgaug/augmenters/geometric.py,ElasticTransformation,__init__,#ElasticTransformation#Any#Any#Any#Any#Any#Any#Any#Any#,1928
Before Change
elif ia.is_iterable(cval):
ia.do_assert(len(cval) == 2)
ia.do_assert(0 <= cval[0] <= 255)
ia.do_assert(0 <= cval[1] <= 255)
self.cval = Uniform(cval[0], cval[1])
elif isinstance(cval, StochasticParameter):
self.cval = cval
else:
After Change
ia.do_assert(len(order) == 2, "Expected tuple with 2 entries, got %d entries." % (len(order),))
ia.do_assert(all([order_i in [0, 1, 2, 3, 4, 5] for order_i in order]))
self.order = DiscreteUniform(order[0], order[1])
elif ia.is_iterable(order):
ia.do_assert(all([ia.is_single_integer(order_i) for order_i in order]), "Expected order list to only contain integers, got types %s." % (str([type(order_i) for order_i in order]),))
ia.do_assert(all([order_i in [0, 1, 2, 3, 4, 5] for order_i in order]), "Expected all of order"s integer values to be in range 0 <= x <= 5, got %s." % (str(order),))
self.order = Choice(order)
elif isinstance(order, StochasticParameter):
self.order = order
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: aleju/imgaug
Commit Name: 1aaa17e4ec9c87b53cb02ea333e2bc8e6074fc59
Time: 2018-06-16
Author: kontakt@ajung.name
File Name: imgaug/augmenters/geometric.py
Class Name: ElasticTransformation
Method Name: __init__
Project Name: aleju/imgaug
Commit Name: a1ffcada5b90540eb10187f632f1947eae0849a2
Time: 2016-11-20
Author: kontakt@ajung.name
File Name: pyimgaug/augmenters2.py
Class Name: Multiply
Method Name: __init__
Project Name: aleju/imgaug
Commit Name: 2651b36093566140180be60b89edb01ec470d959
Time: 2019-09-29
Author: kontakt@ajung.name
File Name: imgaug/validation.py
Class Name:
Method Name: assert_is_iterable_of