2d5cb1852317e27a073b23d7691d51d17ccae77b,geometry/eolearn/geometry/morphology.py,ErosionTask,__init__,#ErosionTask#Any#Any#Any#Any#,29

Before Change


    

    def __init__(self, mask_feature, disk_radius=1, erode_labels=None, no_data_label=0):
        self.mask_type, self.mask_name, self.new_mask_name = next(iter(self._parse_features(mask_feature,
                                                                                            new_names=True)))
        self.disk_radius = disk_radius
        self.erode_labels = erode_labels
        self.no_data_label = no_data_label

After Change


    

    def __init__(self, mask_feature, disk_radius=1, erode_labels=None, no_data_label=0):
        if not isinstance(disk_radius, int) or disk_radius is None or disk_radius < 1:
            raise ValueError("Disk radius should be an integer larger than 0!")

        self.mask_type, self.mask_name, self.new_mask_name = next(self._parse_features(mask_feature, new_names=True)())
        self.disk = skimage.morphology.disk(disk_radius)
        self.erode_labels = erode_labels
        self.no_data_label = no_data_label
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: sentinel-hub/eo-learn
Commit Name: 2d5cb1852317e27a073b23d7691d51d17ccae77b
Time: 2019-07-23
Author: jovan.visnjic@sinergise.com
File Name: geometry/eolearn/geometry/morphology.py
Class Name: ErosionTask
Method Name: __init__


Project Name: tensorflow/models
Commit Name: 81d031d0c1da3c15cc08f4becebf83b5dfea1887
Time: 2019-11-18
Author: hongkuny@google.com
File Name: official/modeling/model_training_utils.py
Class Name:
Method Name: _get_input_iterator


Project Name: sentinel-hub/eo-learn
Commit Name: 7b9bd544f6a2c09de907eeb0980d577434362b83
Time: 2019-06-19
Author: matej.aleksandrov@sinergise.com
File Name: mask/eolearn/mask/cloud_mask.py
Class Name: AddCloudMaskTask
Method Name: execute