docstr: Get the radius for circles
docstr_tok: ["Get","the","radius","for","circles"]
code: def get_radius(self, workspace, gridding):
      """Get the radius for circles"""
      if self.diameter_choice == AM_MANUAL:
          return self.diameter.value / 2
      labels = self.filtered_labels(workspace, gridding)
      areas = numpy.bincount(labels[labels != 0])
      if len(areas) == 0:
          raise RuntimeError(
              "Failed to calculate average radius: no grid objects found in %s"
              % self.guiding_object_name.value
          )
      median_area = numpy.median(areas[areas != 0])
      return max(1, numpy.sqrt(median_area / numpy.pi))
  
imports: from cellprofiler_core.constants.module import HELP_ON_MEASURING_DISTANCES
  from cellprofiler_core.setting.choice import Choice
  from cellprofiler_core.setting.subscriber import LabelSubscriber, GridSubscriber
  from cellprofiler_core.setting.text import LabelName, Integer
  from cellprofiler_core.utilities.core.module.identify import add_object_location_measurements, add_object_count_measurements, get_object_measurement_columns
  from cellprofiler.modules import _help
  import numpy
  from centrosome.cpmorphology import centers_of_labels
  from cellprofiler_core.utilities.grid import Grid
  from cellprofiler_core.module import Module
  from cellprofiler_core.object import Objects
label_desc: Use image node_id 13 for calling the IdentifyObjectsInGrid obj's underlying member method code with example usage: obj.get_radius(workspace, gridding) and returns: max, unknown