53059cec9053a8429b7f0a8f06e6cbe1672b60e7,cellprofiler/modules/groups.py,Groups,on_activated,#Groups#Any#,121

Before Change


                column_name = iscd.name
                metadata_keys = set()
                first = True
                for ipds in self.image_sets.values():
                    ipd = ipds[i]
                    if first:
                        metadata_keys = set(ipd.metadata.keys())
                        first = False
                    else:
                        metadata_keys.intersection_update(ipd.metadata.keys())
                self.metadata_keys[column_name] = list(metadata_keys)
            self.update_tables()
            for group in self.grouping_metadata:
                try:
                    group.metadata_choice.test_valid(self.pipeline)

After Change


        if self.wants_groups:
            self.image_sets_initialized = True
            workspace.refresh_image_set()
            self.metadata_keys = []
            m = workspace.measurements
            assert isinstance(m, cpmeas.Measurements)
            for feature_name in m.get_feature_names(cpmeas.IMAGE):
                if feature_name.startswith(cpmeas.C_METADATA):
                    self.metadata_keys.append(
                        feature_name[(len(cpmeas.C_METADATA)+1):])
            is_valid = True
            for group in self.grouping_metadata:
                try:
                    group.metadata_choice.test_valid(self.pipeline)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: CellProfiler/CellProfiler
Commit Name: 53059cec9053a8429b7f0a8f06e6cbe1672b60e7
Time: 2013-01-16
Author: leek@broadinstitute.org
File Name: cellprofiler/modules/groups.py
Class Name: Groups
Method Name: on_activated


Project Name: matthewwithanm/django-imagekit
Commit Name: a9895f335a5323b4bee7d6cbcffffbe826645c03
Time: 2011-09-08
Author: matthew@exanimo.com
File Name: imagekit/models.py
Class Name: ImageModelBase
Method Name: __init__


Project Name: CellProfiler/CellProfiler
Commit Name: 53059cec9053a8429b7f0a8f06e6cbe1672b60e7
Time: 2013-01-16
Author: leek@broadinstitute.org
File Name: cellprofiler/modules/groups.py
Class Name: Groups
Method Name: on_activated


Project Name: pfnet/optuna
Commit Name: 440c2bc25fdc60cd6ccb491f20c8741a009ce9a7
Time: 2020-12-02
Author: hiroyuki.vincent.yamazaki@gmail.com
File Name: optuna/importance/_mean_decrease_impurity.py
Class Name: MeanDecreaseImpurityImportanceEvaluator
Method Name: evaluate