I’m getting an index out of bounds error in CalculateMath as follows.
When I run the attached pipeline (SpotsTH2v4 failure.cpproj) with a single-channel image (Red.tif) (8.0 MB), using the image (Nuclei_FaDu_DMSO_4Gy_24H_Rep1_1) (1.0 MB) to provide the masks for nuclei (objects) the pipeline runs correctly.
However, when I run the same pipeline with a two-channel image (RedGreen.tif) (16.0 MB) and I apply the pipeline to channel 0, I get the following error in module #14 (CalculateMath):
Starting CellProfiler 4.0.7
Failed to run module CalculateMath
Traceback (most recent call last):
File “cellprofiler\gui\pipelinecontroller.py”, line 3354, in do_step
File “cellprofiler_core\pipeline_pipeline.py”, line 1292, in run_module
File “cellprofiler\modules\calculatemath.py”, line 514, in run
IndexError: index 28 is out of bounds for axis 0 with size 28
Any help will be greatly appreciated
Thanks very much