docstr: Regression test of IMG-1317: relating objects in ijv form
docstr_tok: ["Regression","test","of","IMG-1317",":","relating","objects","in","ijv","form"]
code: def test_02_03_relate_ijv(self):
      """Regression test of IMG-1317: relating objects in ijv form"""
  
      child_ijv = numpy.array([[5, 5, 1], [5, 6, 2], [20, 15, 3]])
      parent_ijv = numpy.array([[5, 5, 1], [5, 6, 1], [20, 15, 2]])
      workspace, module = self.make_workspace(parent_ijv, child_ijv)
      module.wants_per_parent_means.value = False
      module.run(workspace)
      m = workspace.measurements
      parents_of = m.get_current_measurement(
          CHILD_OBJECTS, "Parent_%s" % PARENT_OBJECTS
      )
      self.assertEqual(numpy.product(parents_of.shape), 3)
      self.assertTrue(parents_of[0], 1)
      self.assertEqual(parents_of[1], 1)
      self.assertEqual(parents_of[2], 2)
      child_count = m.get_current_measurement(
          PARENT_OBJECTS, "Children_%s_Count" % CHILD_OBJECTS
      )
      self.assertEqual(numpy.product(child_count.shape), 2)
      self.assertEqual(child_count[0], 2)
      self.assertEqual(child_count[1], 1)
  
imports: import numpy
  import unittest
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.module
  from cellprofiler_core.constants.measurement import C_PARENT, GROUP_NUMBER, GROUP_INDEX, COLTYPE_FLOAT, COLTYPE_INTEGER, M_LOCATION_CENTER_X, M_LOCATION_CENTER_Y, FF_PARENT
  import cellprofiler.modules.relateobjects
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.workspace
label_desc: Use image node_id 6 for calling the TestRelateObjects obj's underlying member method code with example usage: obj.test_02_03_relate_ijv() without return types