docstr: Record the result of a measurement in the workspace's measurements
docstr_tok: ["Record","the","result","of","a","measurement","in","the","workspace","'s","measurements"]
code: def record_measurement(
      self, workspace, object_name, feature_name, result
  ):
      """Record the result of a measurement in the workspace's measurements"""
      data = centrosome.cpmorphology.fixup_scipy_ndimage_result(result)
      workspace.add_measurement(
          object_name, "%s_%s" % (AREA_SHAPE, feature_name), data
      )
      if self.show_window and numpy.any(numpy.isfinite(data)) > 0:
          data = data[numpy.isfinite(data)]
          workspace.display_data.statistics.append(
              (
                  object_name,
                  feature_name,
                  "%.2f" % numpy.mean(data),
                  "%.2f" % numpy.median(data),
                  "%.2f" % numpy.std(data),
              )
          )
  
imports: import centrosome.cpmorphology
  import centrosome.zernike
  import numpy
  import scipy.ndimage
  import skimage.measure
  from cellprofiler_core.constants.measurement import COLTYPE_FLOAT
  from cellprofiler_core.module import Module
  from cellprofiler_core.object import Objects
  from cellprofiler_core.setting import Divider, Binary, ValidationError
  from cellprofiler_core.setting.subscriber import LabelListSubscriber
  import cellprofiler.gui.help.content
  import cellprofiler.icons
label_desc: Use image node_id 16 for calling the MeasureObjectSizeShape obj's underlying member method code with example usage: obj.record_measurement(workspace, object_name, feature_name, result) without return types