def METHOD_NAME(self, threshold_range):
    thresh_min, thresh_max = threshold_range
    presets_list = (self.thresh_ct, self.thresh_mri)
    for presets in presets_list:
        for key in presets:
            (t_min, t_max) = presets[key]
            print(key, t_min, t_max)
            if (t_min is None) or (t_max is None): # setting custom preset
                t_min = thresh_min
                t_max = thresh_max
            t_min = max(t_min, thresh_min)
            t_max = min(t_max, thresh_max)
            # This has happened in Analyze files
            # TODO: find a good solution for presets in Analyze files
            if (t_min > thresh_max):
                t_min = thresh_min
            if (t_max < thresh_min):
                t_max = thresh_max
            presets[key] = (t_min, t_max)
    Publisher.sendMessage('Update threshold limits',
                          threshold_range=(thresh_min, thresh_max))