4248b81ded66fb12b92ffe90c6399fb9b4df0bce,cellprofiler/modules/identifysecondaryobjects.py,IdentifySecondaryObjects,upgrade_settings,#IdentifySecondaryObjects#Any#Any#Any#Any#,439

Before Change


        if variable_revision_number < 9:
            raise NotImplementedError("Automatic upgrade for this module is not supported in CellProfiler 3.0.")

        upgrade_settings, _, _ = super(IdentifySecondaryObjects, self).upgrade_settings(
            setting_values[N_SETTING_VALUES:],
            variable_revision_number,
            module_name,

After Change



        threshold_settings_version = int(threshold_setting_values[0])

        if threshold_settings_version < 4:
            threshold_setting_values = self.apply_threshold.upgrade_threshold_settings(threshold_setting_values)

            threshold_settings_version = 9

        threshold_upgrade_settings, threshold_settings_version, _ = self.apply_threshold.upgrade_settings(
            ["None", "None"] + threshold_setting_values[1:],
            threshold_settings_version,
            "ApplyThreshold",
            False
        )

        threshold_upgrade_settings = [str(threshold_settings_version)] + threshold_upgrade_settings[2:]

        setting_values = setting_values[:N_SETTING_VALUES] + threshold_upgrade_settings

        return setting_values, variable_revision_number, False
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: CellProfiler/CellProfiler
Commit Name: 4248b81ded66fb12b92ffe90c6399fb9b4df0bce
Time: 2017-05-01
Author: mcquin@users.noreply.github.com
File Name: cellprofiler/modules/identifysecondaryobjects.py
Class Name: IdentifySecondaryObjects
Method Name: upgrade_settings


Project Name: eth-cscs/reframe
Commit Name: 392f0fbffafe5d46ca6532ec262066ad77cadedc
Time: 2021-03-01
Author: rafael.sarmiento@cscs.ch
File Name: cscs-checks/apps/spark/spark_check.py
Class Name: SparkCheck
Method Name: prepare_run


Project Name: CellProfiler/CellProfiler
Commit Name: 4248b81ded66fb12b92ffe90c6399fb9b4df0bce
Time: 2017-05-01
Author: mcquin@users.noreply.github.com
File Name: cellprofiler/modules/identifyprimaryobjects.py
Class Name: IdentifyPrimaryObjects
Method Name: upgrade_settings