CellProfiler/CellProfiler-Analyst — Issue #15: More helpful dialog if properties file loaded with bad chars in filters
Author: braymp
Created: 2012-03-01 16:30:49+00:00
State: open
Labels: Feature request

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
app = CPAnalyst(redirect=False)
File "C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 7981, in __init__
self._BootstrapApp()
File "C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 7555, in _BootstrapApp
return _core_.PyApp__BootstrapApp(*args, **kwargs)
File "cpa.py", line 447, in OnInit
if not show_load_dialog():
File "c:\Trunk\CellProfiler-Analyst\cpa\guiutils.py", line 814, in show_load_dialog
p.load_file(filename)
File "c:\Trunk\CellProfiler-Analyst\cpa\properties.py", line 248, in load_file

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.