Skip to content

Commit

Permalink
Added cellcount as an option: fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
shntnu committed May 7, 2015
1 parent cff41e4 commit b463d34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpa/profiling/profile_mean.py
Expand Up @@ -24,7 +24,7 @@ def _compute_group_mean((cache_dir, images, normalization_name,
normalization = normalizations[normalization_name]
data, colnames, _ = cache.load(images, normalization=normalization)

cellcount = data.shape[0]
cellcount = np.ones(1) * data.shape[0]
if method == 'cellcount':
return cellcount

Expand Down Expand Up @@ -109,7 +109,7 @@ def profile_mean(cache_dir, group_name, filter=None, parallel=Uniprocessing(),
elif method == 'mean+deciles':
variables = variables + ['decile_%02d_%s' % (dec, v) for dec in range(10,100,10) for v in variables]
elif method == 'cellcount':
variables = 'Cells_Count'
variables = ['Cells_Count']
return Profiles.compute(keys, variables, _compute_group_mean, parameters,
parallel=parallel, group_name=group_name,
show_progress=show_progress,
Expand Down

0 comments on commit b463d34

Please sign in to comment.