CPA Classifier Error

Hi,
I’ve been having problems to initialize my work with CPA.

When attempting to fetch images in the Classifier I get the following error:
An error occurred in the program:
ValueError: empty range for randrange() (1,1, 0)

Traceback (most recent call last):
File “classifier.pyc”, line 581, in OnFetch
File “datamodel.pyc”, line 119, in GetRandomObjects
File “datamodel.pyc”, line 97, in GetRandomObject
File “random.pyc”, line 241, in randint
File “random.pyc”, line 217, in randrange

(When I selected One table per object type in ExportToDataBase, the classifier worked fine. However, I made sure I have the same number of objects in each object type and they are hierarchially connected. no yellow error was present in ExportToDataBase in CP)

In addition, when attempting to look at the plate viewer I got this error:

An error occurred in the program:
ValueError: max() arg is an empty sequence

Traceback (most recent call last):
File “cpa.py”, line 266, in launch_plate_map_browser
File “plateviewer.pyc”, line 171, in init
File “plateviewer.pyc”, line 368, in OnSelectMeasurement
File “plateviewer.pyc”, line 279, in UpdatePlateMaps
File “plateviewer.pyc”, line 687, in FormatPlateMapData

What should I do in order to overcome this Max error?
(I couldn’t upload a properties file here for some reason)

Thanks in advance,
Erez

Hi Erez,

Let’s start with the simplest:

[quote](I couldn’t upload a properties file here for some reason)
[/quote]

You can zip the properties file and upload if the board doesn’t allow a file type.

Thanks for including this commentary - it indicates you are on the right track and have a decent knowledge of what’s going on here! My guess is that if you inspect your data tables, there will be some NULL or empty values. You could indeed, as you say, have a one-to-one relationship between (e.g.) primary and secondary objects which is required if you want to keep all your per_object data in a single table (but I do wonder why you feel the need to?). However, if you measure, say, intensity of the primary objects, but not of the secondary, then there will be many “Measure_Intensity_*” columns that are NULL/empty for the secondary objects. So in general, it is much easier if you export to separate object tables.

Let me know if this helps,
David