Hello,
I have observed an error working with revision 9871 of Cellprofiler 2.0. We are using CP2.0 on a linux cluster typically with 96 image sets per run. We are running Cell Profiler headless with the following example command for each image set:
python-2.6.sh CellProfiler.py -p Batch_data.mat -c -r -b -f 1 -l 1
Each CP command runs independently, and we cat together the SQL_Object.CSV files to create a single file for output. The corresponding SQL_image.CSV file is created, but empty. The error occurs during a call to getmeasurement.py after the SQL_image.CSV file has been opened by the exporttodatabase module, but before output is written. The observed error only happens for jobs numbered 3-9, 15-21, 27-33, 39-45, etc… That makes 7 out of every 12 commands ( 3<=(n mod 12)<=9 ) in a systematic pattern that produce the following error:
Traceback (most recent call last):
File “/bio/tools/5.1/cellprofiler/9865/CellProfilerVirtualenv/CellProfiler/cellprofiler/pipeline.py”, line 1127, in post_run
module.post_run(workspace)
File “/bio/tools/5.1/cellprofiler/9865/CellProfilerVirtualenv/CellProfiler/cellprofiler/modules/exporttodatabase.py”, line 545, in post_run
self.write_data(workspace)
File “/bio/tools/5.1/cellprofiler/9865/CellProfilerVirtualenv/CellProfiler/cellprofiler/modules/exporttodatabase.py”, line 959, in write_data
value = measurements.get_measurement(cpmeas.IMAGE, feature, i)
File “/bio/tools/5.1/cellprofiler/9865/CellProfilerVirtualenv/CellProfiler/cellprofiler/measurements.py”, line 283, in get_measurement
return self.get_all_measurements(object_name,feature_name)[image_set_index]
File “/bio/tools/5.1/cellprofiler/9865/CellProfilerVirtualenv/CellProfiler/cellprofiler/measurements.py”, line 298, in get_all_measurements
assert self.__dictionary[object_name].has_key(feature_name),“No measurements for %s.%s”%(object_name,feature_name)
AssertionError: No measurements for Image.Metadata_Batch
The complete output is generated with no errors when running a full job (all images in a single batch) on the same systems. The same error has been observed when using batch size of 2 as well. We are able to reproduce the pattern when changing the order of images. The errors are not image-specific, but order-specific.
Chuck