CellProfiler/CellProfiler-Analyst — Issue #16: Update multiclasssql.py to use sqltools filters
Author: braymp
Created: 2012-03-01 19:08:55+00:00
State: open
Labels: Bug

For example, using ScoreAll with a filter brings up the following error:

----------------------------------------
File "C:\Trunk\CellProfiler-Analyst\cpa\classifier.py", line 1043, in ScoreAll
self.keysAndCounts = self.algorithm.PerImageCounts(filter_name=filter, cb=update)
File "C:\Trunk\CellProfiler-Analyst\cpa\fastgentleboosting.py", line 152, in PerImageCounts
return multiclasssql.PerImageCounts(self.model, filter_name=filter_name, cb=cb)
File "C:\Trunk\CellProfiler-Analyst\cpa\multiclasssql.py", line 214, in PerImageCounts
results = do_by_steps(class_query, p.object_table, filter_name, result_clauses)
File "C:\Trunk\CellProfiler-Analyst\cpa\multiclasssql.py", line 178, in do_by_steps
tables += ', ' + ', '.join(p._filters[filter_name].get_tables())
---------------------------------------------
get_tables() is an sqltools function which fails if called on an old-style filter.