65aa8bfe03c924d1c8f5a993ed78b59cb2ef0858,cellprofiler/modules/tests/test_trackobjects.py,TestTrackObjects,test_07_01_lap_none,#TestTrackObjects#,853

Before Change


        labels = workspace.measurements.get_all_measurements(
            OBJECT_NAME, module.measurement_name(T.F_LABEL))
        self.assertEqual(len(labels), 1)
        self.assertEqual(len(labels[0]), 0)
        
    def test_07_02_lap_one(self):
        """Run the second part of LAP on one image of one object"""
        workspace, module = self.make_lap2_workspace(

After Change


        workspace, module = self.make_lap2_workspace(np.zeros((0,7)), 1)
        self.assertTrue(isinstance(module, T.TrackObjects))
        module.run_as_data_tool(workspace)
        self.check_measurements(workspace, {
            T.F_LABEL: [ np.zeros(0, int) ],
            T.F_DISTANCE_TRAVELED: [ np.zeros(0) ],
            T.F_INTEGRATED_DISTANCE: [ np.zeros(0) ],
            T.F_TRAJECTORY_X: [ np.zeros(0) ],
            T.F_TRAJECTORY_Y: [ np.zeros(0) ],
            T.F_NEW_OBJECT_COUNT: [ 0 ],
            T.F_LOST_OBJECT_COUNT: [ 0 ],
            T.F_MERGE_COUNT: [ 0 ],
            T.F_SPLIT_COUNT: [ 0 ]
        })
        
    def test_07_02_lap_one(self):
        """Run the second part of LAP on one image of one object"""
        workspace, module = self.make_lap2_workspace(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 13

Instances


Project Name: CellProfiler/CellProfiler
Commit Name: 65aa8bfe03c924d1c8f5a993ed78b59cb2ef0858
Time: 2010-10-07
Author: leek@1fc53939-2000-0410-845c-e8453a809027
File Name: cellprofiler/modules/tests/test_trackobjects.py
Class Name: TestTrackObjects
Method Name: test_07_01_lap_none


Project Name: CellProfiler/CellProfiler
Commit Name: 65aa8bfe03c924d1c8f5a993ed78b59cb2ef0858
Time: 2010-10-07
Author: leek@1fc53939-2000-0410-845c-e8453a809027
File Name: cellprofiler/modules/tests/test_trackobjects.py
Class Name: TestTrackObjects
Method Name: test_07_02_lap_one


Project Name: CellProfiler/CellProfiler
Commit Name: 65aa8bfe03c924d1c8f5a993ed78b59cb2ef0858
Time: 2010-10-07
Author: leek@1fc53939-2000-0410-845c-e8453a809027
File Name: cellprofiler/modules/tests/test_trackobjects.py
Class Name: TestTrackObjects
Method Name: test_07_01_lap_none


Project Name: CellProfiler/CellProfiler
Commit Name: 65aa8bfe03c924d1c8f5a993ed78b59cb2ef0858
Time: 2010-10-07
Author: leek@1fc53939-2000-0410-845c-e8453a809027
File Name: cellprofiler/modules/tests/test_trackobjects.py
Class Name: TestTrackObjects
Method Name: test_07_05_filter_gap