CellProfiler-Analyst
CellProfiler-Analyst copied to clipboard
More helpful dialog if properties file loaded with bad chars in filters
Right now, cpa quits suddenly with the following error msg (unseen if not using cli)
Traceback (most recent call last):
File "cpa.py", line 529, in
raise Exception, 'PROPERTIES ERROR (%s): Filter names may only contain alphanumeric characters and "".'%filter_name) Exception: PROPERTIES ERROR (092110-NR_1): Filter names may only contain alphanumeric characters and "".
A pleasant dialog box would be nice.
There are two bugs here: first, we should do something other than throw an exception when loading properties, if at all possible. In this case, probably we should offer to rename the filter. Since CPA can't run without a good properties file, we should make an effort to be accommodating to somewhat broken ones.
Also, we should use the CP error dialog on uncaught exceptions in CPA.