1a7a3f4e69c7fb7d9cebbf563cc4b97ae98d7d8c,cellprofiler/tests/test_cellprofiler.py,TestCellProfiler,test_02_01_run_headless,#TestCellProfiler#,88

Before Change


            // Re-run using the measurements file.
            //
            m2_file = os.path.join(output_directory, "M2.h5")
            args = ARGLIST_START + ["-c", "-r", 
                                    "-i", input_directory,
                                    "-o", output_directory,
                                    "-p", measurements_file,
                                    m2_file]
            CellProfiler.main(args)
            self.assertTrue(os.path.exists(m2_file))
        finally:
            shutil.rmtree(output_directory)
            

After Change


            pipeline_file = os.path.join(input_directory, "ExampleHT29.cp")
            measurements_file = os.path.join(output_directory, "Measurements.h5")
            done_file = os.path.join(output_directory, "Done.txt")
            self.run_cellprofiler("-c", "-r", 
                                  "-i", input_directory,
                                  "-o", output_directory,
                                  "-p", pipeline_file,
                                  "-d", done_file,
                                  "-t", temp_directory,
                                  measurements_file)
            import cellprofiler.preferences as cpprefs
            self.assertTrue(os.path.exists(measurements_file))
            self.assertTrue(os.path.exists(done_file))
            self.assertEqual(temp_directory, cpprefs.get_temporary_directory())
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: CellProfiler/CellProfiler
Commit Name: 1a7a3f4e69c7fb7d9cebbf563cc4b97ae98d7d8c
Time: 2014-12-08
Author: leek@broadinstitute.org
File Name: cellprofiler/tests/test_cellprofiler.py
Class Name: TestCellProfiler
Method Name: test_02_01_run_headless


Project Name: CellProfiler/CellProfiler
Commit Name: 1a7a3f4e69c7fb7d9cebbf563cc4b97ae98d7d8c
Time: 2014-12-08
Author: leek@broadinstitute.org
File Name: cellprofiler/tests/test_cellprofiler.py
Class Name: TestCellProfiler
Method Name: test_01_02_code_statistics


Project Name: CellProfiler/CellProfiler
Commit Name: 1a7a3f4e69c7fb7d9cebbf563cc4b97ae98d7d8c
Time: 2014-12-08
Author: leek@broadinstitute.org
File Name: cellprofiler/tests/test_cellprofiler.py
Class Name: TestCellProfiler
Method Name: test_01_01_html